Important MCQ

A good practice for nested if is to use

Q.A good practice for nested if is to use

A) one long line
B) no braces
C) braces and indentation
D) no indentation
Correct Answer:
Option C
Detailed Explanation:
C) braces and indentation 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.