#include<stdio.h>
void swap (int *a, int *b);
int main() {
int x=3,y=5;
swap(&x ,&y);
printf("x = %d & y = %d \n", x , y);
return 0;
}
void swap (int *a, int *b){
int t= *a;
*a= *b;
*b=t;
// printf("*a= %d & *b= %d \n", a ,b);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: