/* Compute the size of some fundamental types. */ #include int main(void) { printf("\n"); printf("Here are the sizes of some integral types:\n\n"); printf(" int:%3d bytes\n", sizeof(int)); printf(" unsigned:%3d bytes\n", sizeof(unsigned)); printf(" long:%3d bytes\n", sizeof(long)); printf(" unsigned long:%3d bytes\n", sizeof(unsigned long)); printf(" short:%3d bytes\n", sizeof(short)); printf("unsigned short:%3d bytes\n", sizeof(unsigned short)); printf(" char:%3d byte \n", sizeof(char)); printf("\n"); return 0; }