#include <stdio.h> void swap(int a, int b) { int tmp; tmp = a; a = b; b = tmp; } int main(void) { int x = 4, y = 5; printf("x=%d, y=%d \n", x, y); swap(x, y); printf("x=%d, y=%d \n", x, y); } | ![](http://itsys.hansung.ac.kr/WebEditor/upload/images/20200910161931_%C0%DA%B7%E1%B1%B8%C1%B6%20%BD%C7%BD%C02%20%B9%AE%C1%A6%BF%B9%C1%A6.png) |