Skip to content

Instantly share code, notes, and snippets.

@nesffer
Created June 21, 2018 15:15
Show Gist options
  • Save nesffer/0d160052eb14e6356a61f67638844a8f to your computer and use it in GitHub Desktop.
Save nesffer/0d160052eb14e6356a61f67638844a8f to your computer and use it in GitHub Desktop.
int a = 10;
int b = 20;
int temp;
printf("교체 전: %d, %d\n", a, b); // 교체 전: 10, 20
temp = a;
a = b;
b = temp;
printf("교체 후: %d, %d\n", a, b); // 교체 후: 20, 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment