#include <stdio.h>
void swap(int *A,int *B) {
    int swaper = *A;
    *A = *B;
    *B = swaper;
}
int main() {
    int X = 3;
    int Y = 2;
    printf("%d %d\n",X,Y);
    swap(&X,&Y);
    printf("%d %d\n",X,Y);
    return 0;
}

Embed on website

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