#include <stdio.h> main(){ int i,j ; i = 1; while (i > 0) { j = i; i++; } printf ("the maximum value of integer is %d\n",j); printf ("the value of integer after overflow is %d\n",i); }
the maximum value of integer is 2147483647 the value of integer after overflow is -2147483648