Vidyalelo
Computer Science · Q133

Object Oriented Programming Using C++

Engineering and GATE · Computer Science · question 133

Q133

In a simple 'if' statement with no 'else'. What happens if the condition following the 'if is false?

A.
the program searches for the last else in the program
B.
nothing
C.
control 'falls through' to the statement following 'if
Answer
D.
the body of the statement is executed
E.
None of the above

Answer: Option C

Solution

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