Q. 72 Consider the following C function
void swap(int a, int b) { int temp; temp = a; a = b; b = temp; }
In the order to exchange the values of two variables x and y .
(A) call swap (x,y)
(B) call swap (&x,&y)
(C) swap (x,y) cannot be used as it does not return any value
(D) swap (x,y) cannot be used as the parameters are passed by value
Answer: (A)
Explanation: