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

Explain whether the algorithm for reliable multicast over IP multicast works for open as well as closed groups. Given any algorithm for closed groups, how, simply, can we derive an algorithm for open groups?

What will be an ideal response?

Computer Science & Information Technology

If a speed mismatch was configured between two Cisco routers' Ethernet interfaces, what would be the status of this interface?

A) Down/down B) Up/up C) Up/down D) Up/down (err-disabled)

Computer Science & Information Technology

Each element in a two-dimensional array requires ____ subscript(s) to reference it.

A. one B. two C. three D. four

Computer Science & Information Technology

The term ____ refers to chip-based storage.

A. storage media B. memory C. hard drive D. zip drive

Computer Science & Information Technology