#include<stdio.h> void swap(int *x, int *y) { int z; z = *x; *x = *y; *y = z; } int main() { int a,b; scanf("%d%d",&a,&b); printf("a=%d,b=%d\n",a,b); swap(&a,&b); printf("a=%d,b=%d\n",a,b); }