#include <stdio.h>
//#include <conio.h>

int swap(int x,int y);

int  main() {
   int a=100,b=200;
   //clrscr();
   swap(a,b);
   printf("value of a %d \n",a);
   printf(" value of b %d \n",b);
   //getch();
}
int swap (int x,int y)
{
    int temp;
    temp=x;
    x=y;
    y=temp;
return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: