Created
June 21, 2018 15:06
-
-
Save nesffer/b063a70efcd182a4dbf1f674ddb8c2fe 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
int a = 10; | |
int b = 20; | |
printf("XOR 전: %d, %d\n", a, b); // XOR 전: 10, 20 | |
a ^= (b ^= (a ^= b)); | |
printf("XOR 후: %d, %d\n", a, b); // XOR 후: 20, 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment