#include<stdio.h> void swap(int* pa,int* pb){ int tmp=*pa; *pa=*pb; *pb=tmp; printf("%d %d",*pa,*pb); } int main(){ int a=3; int b=5; int *pa=&a; int *pb=&b; swap(pa,pb); }