Important MCQ

Largest of a=1,b=2,c=3 using nested if gives

Q.Largest of a=1,b=2,c=3 using nested if gives

A) 3
B) 1
C) 6
D) 2
Correct Answer:
Option A
Detailed Explanation:
A) 3 is correct. A nested if is an if statement inside another if. The inner condition is reached only if execution enters the outer block; braces and indentation make the structure clear.