#include <stdio.h>
void swap(int *a,int *b,int *c){
int temp;
temp = *a;
*a = *c;
*c = temp;
temp = *c;
*c = *b;
*b = temp;
}
int main() {
int n = 0;
int a = 10;
int b = 20;
int c = 30;
swap(&a,&b,&c);
printf("%d,%d,%d",a,b,c);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: