Gate 1999 pyq C Programming | Consider the following C function int Trial (int a, int b, int c)

Опубликовано: 13 Март 2026
на канале: Gate CS pyqs - the other way [Eng]
723
23

Consider the following C function definition

int Trial (int a, int b, int c)
{
if ((a greater_than_or_equal_to b) && (c less_than b)) return b;
else if (a greater_than_or_equal_to b) return Trial(a, c, b);
else return Trial(b, a, c);
}
The functional Trial:

(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 , and c
(D)None of the above