void swap(int *x, int *y) {
  int *swap;
  swap = x;
  x = y;
  y = swap;
}


안에서 찍어보면 x랑 y 주소값 바뀌어있던데

인풋으로 받은거는 안바껴있더라고

왜 그런지 이해를 못하겠네 ㅠ