Vidyalelo
C++ Programming · Q14

Control Flow Statements in C++

Programming · C++ Programming · question 14

Q14

What is the syntax for the 'if-else' statement in C++?

A.
if (condition) then { statement; } else { statement; }
B.
if { condition } { statement; } else { statement; }
C.
if (condition) { statement; } else { statement; }
Answer
D.
if (condition) { statement; } else statement;

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board