Skip to content

Instantly share code, notes, and snippets.

@LucianoPAlmeida
Created January 27, 2018 19:30
Show Gist options
  • Save LucianoPAlmeida/217bcc76413789b5893bbff1d33a97e3 to your computer and use it in GitHub Desktop.
Save LucianoPAlmeida/217bcc76413789b5893bbff1d33a97e3 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
int main(void)
{
int x = INT_MAX;
x += 1; // Integer overflow here
printf("x = %i\n", x);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment