请问大佬们这个sizeof怎么输出8啊怎么算的?
2020-12-14 15:20
2020-12-14 15:30
,我是小白,这个难道不是因为s[0]+1是个地址吗,然后地址占8B?
2020-12-14 15:35
2020-12-14 15:44
程序代码:int main()
{
int * p;
printf("%d ",sizeof(p));
printf("%d ",sizeof(*p));
return 0;
}
2020-12-14 15:50
2020-12-14 16:42
程序代码:TYPE LP32 ILP32 LLP64 LP64 ILP64 char 8 8 8 8 8 short 16 16 16 16 16 int 16 32 32 32 64 long 32 32 32 64 64 long long 64 64 64 64 64 pointer 32 32 64 64 64
2020-12-14 16:48