如题所述
#include<stdio.h>
void swap(int* u,int* v);
int main(void)
{
int x=5,y=10;
swap(&x,&y);
printf("x=%d.y=%d\n", x,y);
}
void swap(int * u,int * v)
int temp;
temp=*u;
*u=*v;
*v=temp;