Examveda
Examveda

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

D. the body of the statement is executed

E. None of the above

Answer: Option C


Join The Discussion

Related Questions on Object Oriented Programming Using C Plus Plus

A default catch block catches

A. all thrown objects

B. no thrown objects

C. any thrown object that has not been caught by an earlier catch block

D. all thrown objects that have been caught by an earlier catch block