Created
August 18, 2016 22:16
-
-
Save alanduan/3daefa38abcb2c7dda42a38e5587d75a to your computer and use it in GitHub Desktop.
gotcha
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() | |
{ | |
long long a = -1ll; | |
unsigned b = 0xff; | |
a &= ~b; | |
// what is a now? | |
printf("0x%016llx\n", a); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment