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; }
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board