определение размеров типов

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#include <stdio.h>
int main() {
printf("#define SIZE_OF_WCHAR %d\n", sizeof(wchar_t));
printf("#define SIZE_OF_SHORT %d\n", sizeof(short));
printf("#define SIZE_OF_INT %d\n", sizeof(int));
printf("#define SIZE_OF_LONG %d\n", sizeof(long));
printf("#define SIZE_OF_LONG_LONG %d\n", sizeof(long long));
return 0;
}