会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
---Agriculture Boot
中国农业科学课 农业信息所 国家农业大数据科学中心话事人
博客园
首页
新随笔
联系
订阅
管理
2020年9月22日
数组指针一道题目分享
摘要: #include #includeint main(){ char a[8]="abcdef",b[8],p=a+3; while(--p>=a){ strcpy(b,a); } printf("%d",strlen(b)); return 0;}结果为 6 因为: p=a+3 a为数组的首地址不是 数组元素的首地址,所以+3 实际上跨越了 多个地址空...
阅读全文
posted @ 2020-09-22 22:54 ---dgw博客
阅读(127)
评论(0)
推荐(0)
编辑
公告