Home » C++ Programming » Data Types » Question
  1. What is the value of the bool?
    bool is_int(100.05)
    1. 0
    2. 1
    3. True
    4. False
    5. None of these
Correct Option: D

The given number is a double not an integer, so the function returns 0 which is boolean false.



Your comments will be displayed only after manual approval.