Skip to content

Instantly share code, notes, and snippets.

@sarcilav
Last active December 17, 2015 02:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sarcilav/5534052 to your computer and use it in GitHub Desktop.
Save sarcilav/5534052 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main()
{
int near_max = (int) ((1LL<<31) - 2);
do {
printf("%d\n", ++near_max);
} while (near_max > 0);
return 0;
}
2147483647
-2147483648
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment