Important MCQ

Can else be used without an if?

Q.Can else be used without an if?

A) Yes
B) Only in main
C) No
D) Only with loops
Correct Answer:
Option C
Detailed Explanation:
C) No is correct. An if-else statement makes a two-way decision: the if block runs when the condition is true, otherwise the else block runs. Exactly one branch is selected.