Swap two integers
void swap(int * x, int * y) {
int tmp;
tmp= * x;
*x= *y;
*y= tmp;
}
The parameters are no long of type int, but instead �point to int�.
Previous slide
Next slide
Back to first slide
View graphic version