Important MCQ

A nested if means

Q.A nested if means

A) an if inside another if
B) two ifs one after another
C) an if with else only
D) an if without condition
Correct Answer:
Option A
Detailed Explanation:
A) an if inside another if 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.