#include <stdio.h>
void sort(int *p1,int *p2){
int temp;
temp = *p1;
*p1 = *p2;
*p2 = temp;
}
int main() {
int n = 0;
int p1 = 15;
int p2 = 7;
sort(&p1,&p2);
printf("%d,%d",p1,p2);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: