윤성준 ¶
~cpp #include <iostream> using namespace std; void swap(int *n, int *i); void main() { int a, b; a = 1, b = 18; cout << a << " " << b << endl; swap(a, b); cout << a << " " << b << endl; } void swap(int *n, int *i) { int m; m = *n; *i = *n; *n = m; }