The New Swap Function
void swap(int& x, int& y)
{
// Create a temporary variable
int temp;
temp = x;
x = y;
y = temp;
}
What about functions and arrays / structures?
Previous slide
Next slide
Back to first slide
View graphic version