Consider the following function
void swap(int a, int b)
temp = a;
a = b;
b = temp;
In order to exchange the values of two variables $x$ and $y$.
call $swap(x, y)$
call $swap(\&x, \&y)$
$swap (x, y)$ cannot be used as it does not return any value
$swap (x, y)$ cannot be used as the parameters are passed by value
option A will not swap the values because it is passed by value...
option B will not swap the value
void swap(int a, int b) in which arguments will not take address because its value not pointer
option C is false , given reason is wrong
and option D is correct .. we cant use $swap(x,y)$ because it is pass value function call which will not swap the values
This Might Give Clear Understanding
Ans: D swap (x, y) cannot be used as the parameters are passed by value
If "Rounded to the nearest integer" is the ...