/* program to determine number of bits used for various integer types on a specific machine. */ #include int main () { printf ("number of bits/bytes allocated to different integer types\n"); printf (" type #bits # bytes\n"); char a; printf (" char %3d %3d\n", 8*sizeof (a), sizeof (a)); short int b; printf (" short int %3d %3d\n", 8*sizeof (b), sizeof (b)); int c; printf (" int %3d %3d\n", 8*sizeof (c), sizeof (c)); long int d; printf (" long int %3d %3d\n", 8*sizeof (d), sizeof (d)); long long e; printf (" long long int %3d %3d\n", 8*sizeof (e), sizeof (e)); return 0; }