Advertisements
Advertisements
Question
If (a < b && a < c)
(where a, b and c are three integer numbers)
Options
a is the greatest number
a is the smallest number
b is the greatest number
None
MCQ
Solution
a is the smallest number
Explanation:
Assuming the && operator returns 'true', both criteria (a < b) and (a < c) should be true. Hence, an is the smallest of the three numbers.
shaalaa.com
Is there an error in this question or solution?