In C++ an expression that evaluates to 5, - 5, or for that matter anything other than 0, is considered true by an if statement.
Correct Answer:
Verified
Q27: The statement Q28: The rule for matching an else with Q29: To check if a variable has a Q30: Relational expressions and logical expressions are both Q31: The following C++ test checks if the Q32: The following statement s will not print Q32: Relational operators connect two or more relational Q33: If the sub- expression on the left Q34: Assuming moreData is a Boolean variable, the Q37: Assuming goodData is a Boolean variable, the
![]()
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents