Vidyalelo
C++ Programming · Q1

Control Flow Statements in C++

Programming · C++ Programming · question 1

Q1

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

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

Answer: Option D

Solution

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