分配5个字节的内存,sizeof的结果却是4??
#include<stdio.h>#include<malloc.h>
int main(void)
{
char *a;
a=(char *)malloc(5);
printf("%d",sizeof(a));
getch();
return 0;
}结果输出的是4 ,为什么??
2011-12-04 20:56

2011-12-04 21:05
2011-12-04 21:10

2011-12-04 22:16
2011-12-08 14:34