#include <stdio.h>

void swap(int *pa, int *pb);

int main() {

    int a=10, b=20;

    swap(&a, &b);
    printf("%d %d", a, b);

    
    return 0;
}

void swap(int *pa, int *pb)
{
    int temp;

    temp = *pa;
    *pa = *pb;
    *pb = temp;



    


}

Embed on website

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