Mega Code Archive
Categories
/
C
/
Code Snippets
Maximum and minimum value of int
#include
main() { int x,j ; x = 1; while (x > 0) { j = x; x++; } printf ("Maximum value of integer is %d\n",j); printf ("The value of integer after overflow is %d\n",x); }