C-17-Q131mediumsingle_mcq
In the largest-of-three program, when two of the three numbers are equal and both larger than the third, the printed number is:
In the largest-of-three program, when two of the three numbers are equal and both larger than the third, the printed number is:
- aAlways the smallest
- bEither of the two equal larger numbers (whichever branch matches first)
- cNone of them
- dThe third number
ব্যাখ্যা
When the two larger numbers are equal, the comparison condition that is evaluated first succeeds, so that branch's number is printed. Since the two values are identical, the result is correctly the largest value either way.