Created
July 18, 2019 23:56
-
-
Save surinoel/12ac8af48095f2d0999eef674c4ecee4 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> | |
#define swap(a, b) {int tmp=a; a=b; b=tmp;} | |
int main(void) { | |
int a = 3, b = 4; | |
printf("%d %d", a, b); | |
swap(a, b); | |
printf("%d %d", a, b); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment