Fork me on Gitee
摘要: #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) 编辑