Vidyalelo
C++ Programming · Q25

Control Flow Statements in C++

Programming · C++ Programming · question 25

Q25

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

A.
if { condition1 } && { condition2 } { statement; }
B.
if { condition1 && condition2 } { statement; }
C.
if (condition1 && condition2) { statement; }
Answer
D.
if (condition1) && (condition2) { statement; }

Answer: Option C

Solution

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