a=44 b=77 x=44 y=77 x=77 y=44 a=44 b=77
The values in the parameters of swap are successfully swapped, but this does not affect the values held in the variables a and b of main.
swap
a
b
main