Created
January 27, 2018 19:30
-
-
Save LucianoPAlmeida/217bcc76413789b5893bbff1d33a97e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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