What is the output for the following code segment:

int p, q, r;
p = 10;
q = 3;
r = -2;
if ((p + q) < 14 && (r < q – 3))
cout << r;
else
cout << p;


2

Computer Science & Information Technology

You might also like to view...

Select the false statement regarding exceptions.

a. The C++ standard has a hierarchy of exception classes. b. All exception classes are accessible via . c. Several classes derive from class exception. d. The what function can be overridden in each class derived from exception.

Computer Science & Information Technology

The algorithm for a story serves as the basis for creating an initial outline of the sequence of scenes and shots. 

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

You can use the DatePart function to examine a(n) ________ and return a specific ________

A) interval of time, date B) entry, date C) date, date input D) date, interval of time

Computer Science & Information Technology

?_____, a principle of design, is the repetition or alternation of a design element in order to provide a sense of movement, flow, and progress.

A. ?Unity B. ?Balance C. ?Rhythm D. ?Emphasis

Computer Science & Information Technology