Guest User

Untitled

a guest
Jun 22nd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. int a = 10;
  2. int b = 20;
  3. int temp;
  4.  
  5. printf("교체 전: %d, %d\n", a, b); // 교체 전: 10, 20
  6. temp = a;
  7. a = b;
  8. b = temp;
  9. printf("교체 후: %d, %d\n", a, b); // 교체 후: 20, 10
Add Comment
Please, Sign In to add comment