本帖最后由 粘糊浆 于 2015-3-11 19:14 编辑
#include <stdio.h>
#include <string.h>
int main()
{
char c[4] = {'a','b','c','\0'};
// char a ='5';
char c1[] = "agbadf";
int length= strlen(c1);
printf("%p--- %d %p",&c1[9],length,&c[2]);
}
为什么输出的地址是一样的 是在CODE :: blocks里运行的。
|
|