If z = 8, what would be the result of this statement:
if(z == 0 || 1) cout << "It’s OK to print "<< z ;
else cout << "Can’t do this! ";
A. the compiler will display an error.
B. It’s OK to print 8
C. Can’t do this!
D. It’s OK to print 1
B. It’s OK to print 8
Computer Science & Information Technology
You might also like to view...
A filter is a tool that creates space between controls in a form or query
Indicate whether the statement is true or false
Computer Science & Information Technology
What is wrong with the following program statement? How can it be fixed?
``` System.out.println ("To be or not to be, that is the question."); ```
Computer Science & Information Technology