/* * mysystem.c - print size of each data type on this system */ #include int main(void) { printf("memory allocation for each data type in my system\n"); printf("int: %d bytes\n", sizeof(int) ); printf("unsigned int: %d bytes\n", sizeof(unsigned int) ); printf("short: %d bytes\n", sizeof(short) ); printf("unsigned short: %d bytes\n", sizeof(unsigned short) ); printf("long: %d bytes\n", sizeof(long) ); printf("char: %d bytes\n", sizeof(char) ); printf("double: %d bytes\n", sizeof(double) ); printf("float: %d bytes\n", sizeof(float) ); }