会员
周边
新闻
博问
融资
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
striver_zhu
落霞与孤鹜齐飞
博客园
首页
新随笔
联系
管理
2015年8月26日
字符串截取问题
摘要: #include #include int main(void){ char s[]="123456789"; char d[]="123"; strcpy(d,s); printf("%s,%s",d,s); return 0;}结果:123456789,56789解析:在内存中分配如下...
阅读全文
posted @ 2015-08-26 16:06 striver_zhu
阅读(164)
评论(0)
推荐(0)
编辑
公告