/* * intlimits1.c - if int takes 16 bits, it can hold numbers up to 2^16 or 32768. */ #include int main(void) { 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("Determining 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; }