int main()
{
printf("sizeof(char)=%d\n", sizeof(char))
printf("sizeof(int)=%d\n", sizeof(int))
printf("sizeof(short)=%d\n", sizeof(short))
printf("sizeof(long)=%d\n", sizeof(long))
printf("sizeof(unsigned int)=%d\n", sizeof(unsigned int))
printf("sizeof(float)=%d\n", sizeof(float))
printf("sizeof(double)=%d", sizeof(double))
return 0
}
#include<stdio.h>int main()
{
printf("sizeof(int)=%d\n", sizeof(int))
printf("sizeof(float)=%d\n", sizeof(float))
printf("sizeof(double)=%d\n", sizeof(double))
printf("sizeof(char)=%d\n", sizeof(char))
//依次为 4 4 8 1
return 1
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)