UGC-NET DEC-2019 Part-2
November 7, 2023Software-Engineering
November 8, 2023Programming
Question 27 |
Consider the following C function definition.
int Trial (int a, int b, int c) { if ((a >= b) && (c < b) return b; else if (a >= b) return Trial(a, c, b); else return Trial(b, a, c); }
The function Trial:
Finds the maximum of a, b, and c | |
Finds the minimum of a, b and c | |
Finds the middle number of a, b, c | |
None of the above |
Question 27 Explanation:
Try for (3,2,2), it will go for infinite loop.
Correct Answer: D
Question 27 Explanation:
Try for (3,2,2), it will go for infinite loop.
Subscribe
Login
0 Comments