#include int main() { printf("A char is %ld bytes.\n", sizeof(char)); printf("A short int is %ld bytes.\n", sizeof(short int)); printf("A int is %ld bytes.\n", sizeof(int)); printf("A long int is %ld bytes.\n", sizeof(long int)); printf("A long long in is %ld bytes.\n", sizeof(long long int)); return(0); } // The sizeof funtion outputs the size of any data type. //If you want to know the size of datatype in long ints use %ld (this is the safe way to //do it if you have a newer compiler. Therefore, this program prints the size of a char, //short int, int, and long int. This is from smallest to biggest; although, //an int and long int are of the same size.