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...

Write statement(s) that reads the information in the record below from stream info to string variables courseName (on the first line) and courseNum and integer variable hours (on the second line).

Intro to CS COMSC101 4

Computer Science & Information Technology

What keyboard shortcut will allow you to launch a script directly from the PowerShell ISE?

A. F5 B. F3 C. Ctrl+L D. Ctrl+S

Computer Science & Information Technology

Ease of use means that forms and screens are straight-forward and require no extra time to:

A) decipher. B) translate. C) erase. D) encode.

Computer Science & Information Technology

You would use the Performance Analyzer tool to help reduce data redundancies

Indicate whether the statement is true or false

Computer Science & Information Technology