2. Pointer vs Reference Swap

Loading...

Loading...

Input

5 10

Expected Output

After swapPtr: a=10 b=5 After swapRef: a=10 b=5