69,371
社区成员
发帖
与我相关
我的任务
分享
#include <stdio.h>
int main(void)
{
/**打印*/
printf("Hello, world!\n");
/*返回**/
return 0;
}
int a[100];
cout<<sizeof(&a)<<endl;
cout<<typeid(&a).name()<<endl;
/*
vs2010结果:
4
int (*)[100]
Codeblocks结果:
400
PA100_i
可见两者处理对待&a的方式有点不同
*/