/* * Example of the sizeof statement, determine how much memory * to store values of a particular type */ #include int main() { printf("Size of char = %d byte.\n",sizeof(char)); printf("Size of short = %d bytes.\n",sizeof(short)); printf("Size of int = %d bytes.\n",sizeof(int)); printf("Size of long int = %d bytes.\n",sizeof(long)); printf("Size of float = %d bytes.\n",sizeof(float)); printf("Size of double = %d bytes.\n",sizeof(double)); printf("Size of long double = %d bytes.\n",sizeof(long double)); return 0; }