UGC-NET DEC-2019 Part-2
November 7, 2023Software-Engineering
November 8, 2023Question 9929 – C-Programming
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:
Correct Answer: D
Question 1 Explanation:
Try for (3,2,2), it will go for infinite loop.
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
Subscribe
Login
0 Comments