...
Question 7681 – UGC-NET DEC-2019 Part-2
November 7, 2023
Question 10713 – Software-process-models
November 8, 2023
Question 7681 – UGC-NET DEC-2019 Part-2
November 7, 2023
Question 10713 – Software-process-models
November 8, 2023

Question 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.
A
Finds the maximum of a, b, and c
B
Finds the minimum of a, b and c
C
Finds the middle number of a, b, c
D
None of the above
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!