1. #include<stdio.h>
    2. void swap(int x,int y)
    3. {
    4. int temp;
    5. temp=x;x=y;y=temp;
    6. }
    7. void main()
    8. {
    9. int a,b;
    10. a=4,b=6;
    11. swap(a,b);
    12. printf("a=%d,b=%d\n",a,b);
    13. }