Home » C++ Programming » Data Types » Question
  1. For what values of the expression is an if-statement block not executed?
    1. 0
    2. 0, all negative values, all positive values except 1
    3. 0 and -1
    4. 0 and all negative values
    5. None of these
Correct Option: C

The if-statement block is only not executed when the expression evaluates to 0. its just syntactic sugar for a branch-if-zero instruction.



Your comments will be displayed only after manual approval.