What is the output of the following code fragment if x is 15?

if(x < 20)
if(x <10)
cout << "less than 10 ";
else
cout << "large\n";

a. less than 10
b. nothing
c. large
d. no output, syntax error

c. large

Computer Science & Information Technology

You might also like to view...

Class methods are indicated by the special word public.

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

Computer Science & Information Technology

In the System Stability Index chart, a ____ is simply informational, such as that you have successfully installed a new hard drive or software application.

A. red circle with an x inside B. white comment symbol with an i inside C. yellow yield sign with an exclamation point D. blue circle with a question mark

Computer Science & Information Technology