#include<stdio.h>
void swap(int x,int y);
int main(void)
{
        int a=10;
        int b=20;
        printf("%d,%d",a,b);
        swap(a,b);
        printf("%d,%d",a,b);
        return 0;
}
void swap(int x,int y)
{
        int temp;
        temp=x;
        x=y;
        y=temp;
    
}
메인함수 밖으로 내보내서 넘겨야하는이유가뭐죠?