Physics · Computer Programming
Consider the following recursive C function definition: int Verify(int a, int b, int c) { if (a = b) return b; else if (a >= b) return Verify(b, a, c); else if (c < b) return Verify(a, c, b); } What does the function Verify() return?
- 1The maximum number among a, b, and c
- 2The minimum number among a, b, and c
- 3The middle number (median) of a, b, and c✓
- 4The sum of the two largest numbers among a, b, and c
Correct answer
The middle number (median) of a, b, and c
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Physics?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Computer Programming?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Physics · Computer Programming