关于win nt 下32位c++程序中 sizeof 的计算,请赐教
zzjb 2003-12-12 09:48:16
void func(char str[100])
{
请计算
sizeof(str)=答案1
}
char str[]="Hello";
char *p=str;
int n=10;
请计算
sizeof(str)=答案2
sizeof(p)=答案3
sizeof(n)=答案4
void *p=malloc(100);
请计算
sizeof(p)=答案5
请给出答案,并解释以下原因,谢谢