Chapter 4 Quiz Starting Out With C++ 007

(bonus question) How does C++ handle true or false with regards to storing these values. Mark all that apply, if any

a. only a 1 is equal to true.
b. only 0 is considered true.
c.  a 0 is considered false.
d. anything other than 0 is considered true.
e. None of the above, they are stored as T or F.

Remember the lecture from Monday on making decisions and you'll do fine.

1 comment:

  1. d. anything other than 0 is considered true.

    ReplyDelete