Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - C language programming, constructing exchange function, realizing the exchange of two integer variables, using pointer type.
C language programming, constructing exchange function, realizing the exchange of two integer variables, using pointer type.
# include & ltstdio.h & gt

Invalid? swap(int*? x,? int*? y)

{

int? t? =? * x;

*x? =? * y;

*y? =? t;

Return;

}

int? Master ()

{

int? Answer? =? 3,? b? =? 4;

Interchange (amp 1, & AMPB);

printf("%d? %d\n ",one? b);

Return? 0;

}