Question: C++ Consider the following code: void another_swap (int*& 1hs, int*& rhs) {int* temp = 1hs; 1hs = rhs; rhs = temp;} int main() {int x
Consider the following code: void another_swap (int*& 1hs, int*& rhs) {int* temp = 1hs; 1hs = rhs; rhs = temp;} int main() {int x = 5, y = 10; int *a = &x, *b = &y; int **j = &a, **k = &b; another_swap (a, b);} Which values are swapped? List all that apply. (A) x and y (B) a and b (C) j and k (D) None, no values are swapped
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
