In distinguishing an expression as true or false, C++ sees which of the following as true?

a) true
b) 0
c) 1
d) Any non-zero value
e) The character 'F'

a), c), and d) e) ‘F’ is coerced char to bool, perhaps through an
intermediate type

Computer Science & Information Technology

You might also like to view...

The Census Bureau has not always kept confidential the information it has collected. According to the textbook, this became apparent

a. during the Civil War. b. after the attack on Pearl Harbor. c. during the Vietnam War. d. during the first Gulf War. e. after September 11, 2001.

Computer Science & Information Technology

A comment that appears at the bottom of the page and contains the corresponding superscript number is called a _____.

A. footer B. note C. reference D. footnote

Computer Science & Information Technology