#include <stdio.h>
int main()
{
printf("int = %d\n", sizeof(int));
printf("short int = %d\n", sizeof(short));
printf("long int = %d\n", sizeof(long));
printf("long long int = %d\n", sizeof(long long));
printf("char = %d\n", sizeof(char));
printf("_Bool = %d\n", sizeof(_Bool));
printf("float = %d\n", sizeof(float));
printf("double = %d\n", sizeof(double));
printf("long double = %d\n", sizeof(long double));
return 0;
}
[fishc@localhost s1e6]$ gcc test2.c && ./a.out
int = 4
short int = 2
long int = 4
long long int = 8
char = 1
_Bool = 1
float = 4
double = 8
long double = 12