What is the output of the following C++ code? 
int x = 35;int y = 45;int z;if (x > y)  z = x + y;else  z = y - x; 
cout

A. 35 45 80
B. 35 45 10
C. 35 45 -10
D. 35 45 0


Answer: B

Computer Science & Information Technology

You might also like to view...

Each of the SAMM's 12 security practices has how many maturity levels?

A. 1 B. 2 C. 3 D. 4

Computer Science & Information Technology

The ____ Tool draws a selection quickly using the mouse.

a. Quick Selection b. Magic Wand c. Add to selection d. Subtraction from selection

Computer Science & Information Technology

A(n) ____________________ is a set of predefined styles for a particular type of document, e.g., memo or letter.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Which of the following is raw numbers and characters, and not very useful for decision making?

Computer Science & Information Technology