What is the output of the following program segment?
void max { int x, int y, int m)
{
if (x > 5) m = x;
else m = y;
}
int main()
{
int i = 20, j = 5, k = 0;
max(i, j, k ); printf("%d", k) ;
}
A. | 5 |
B. | 20 |
C. | 0 |
D. | none of above |
Answer : C Explanation : |
|
Option: A Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. |