CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider the following C function definition:

int Trail (int a, int b, int c)
{
if ((a >= b) && (c < b)) return b;
else if (a >= b) return Trail (a,c,b);
else return Trail (b,a,c);
}

The function Trail:

A
Finds the middle number of a, b & c
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
Finds the minimum of a, b & c
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
Finds the maximum of a, b & c
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
None of the above
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution

The correct option is D None of the above
Take 10, 6, 7 values and verify the options.

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Some Functions and Their Graphs
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon