Important MCQ

if (0) the block

Q.if (0) the block

A) executes
B) executes twice
C) does not execute
D) causes an error
Correct Answer:
Option C
Detailed Explanation:
C) does not execute is correct. An if statement executes its body only when its condition is true. The condition is written in parentheses, and braces group multiple statements.