Vidyalelo
C++ Programming · Q34

Control Flow Statements in C++

Programming · C++ Programming · question 34

Q34

In C++, what is the purpose of the 'if-else' statement?

A.
Allows execution of different blocks of code based on a condition
Answer
B.
Terminates the program
C.
Executes the same block of code repeatedly
D.
Skips the current iteration in a loop

Answer: Option A

Solution

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