Last active
June 18, 2020 07:52
-
-
Save sixtyfive/e0798494c8b311294cd17468a33f0802 to your computer and use it in GitHub Desktop.
This file contains hidden or 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> | |
int main(void) { | |
unsigned int a = 5; | |
a -= (unsigned)10; | |
printf("%i\n", a); // -5 with amd64/gcc, but only by coincidence (undefined!) | |
printf("%u\n", a); // some really high number; UINTMAX - 5... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment