Important MCQ

The if statement is a

Q.The if statement is a

A) decision (selection) statement
B) loop statement
C) declaration
D) comment
Correct Answer:
Option A
Detailed Explanation:
A) decision (selection) statement 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.