c program that exceeds maximum int size on your system

7:06 AM




#include

int main(void)

{

int i = 2147483647;

unsigned int j = 4294967295;



printf("%d %d %d\n", i, i+1, i+2);

printf("%u %u %u\n", j, j+1, j+2);

return 0;

}


Here is the result for Your system:

2147483647 -2147483648 -2147483647

4294967295 0 1

0 Comments