/* size.c by David Wallach (650) 493-1190 wallach@technologist.com */ #include void main() { printf("Presenting the program size.c by David Wallach:\n"); printf("A char has %d byte.\n",sizeof(char)); printf("A short has %d bytes.\n",sizeof(short)); printf("A int has %d bytes.\n",sizeof(int)); printf("A long has %d bytes.\n",sizeof(long)); printf("A float has %d bytes.\n",sizeof(float)); printf("A double has %d bytes.\n",sizeof(double)); printf("A long double has %d bytes.\n",sizeof(long double)); }