/* * intlimits2.c - Declaring variables to hold smaller values. * short int = -32000 to +32000 */ #include int main(void) { short int xx, yy, zz; xx=500; yy=5000000; zz=5000000000; /* Compiler warning * intlimits.c: In function 'main': * intlimits.c:10: warning: integer constant is too large for 'long' type * intlimits.c:10: warning: overflow in implicit constant conversion */ printf("Short int integer allocation\n"); printf("5000 is stored as %d in memory\n", xx); printf("5000000 is stored as %d in memory\n", yy); printf("5000000000 is stored as %d in memory\n", zz); return 0; }