ISRO exam 2017 – Question 54 with Solution
In this video we are going to discuss another question which was asked in the exam of ISRO
54. Consider the following C function void swap
( int x, int y )
{
int tmp; tmp = x; x= y;
y = tmp;
}
In order to exchange the values of two variables a and b:
- Call swap (a, b)
- Call swap (&a, &b)
- swap(a, b) cannot be used as it does not return any value
- swap(a, b) cannot be used as the parameters passed by value