What is the output of the following code, if the user enters the sequence 10 17 35 7?

const int MAX = 4;
int items[MAX];
for (int i = 0; i < MAX; i++)
cin >> items[i];
items[2] += 2;
for (int i = 0; i < MAX; i++)
cout << items[i] << “ “;

a) 12 19 37 9
b) 10 2 35 7
c) 10 17 37 7
d) 10 19 35 7


c) 10 17 37 7

Computer Science & Information Technology

You might also like to view...

? ? In the figure above, item  ____ points to an attribute value.

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

Computer Science & Information Technology

What type of cards, consisting of a microprocessor and internal memory, are usually found in GSM devices?

a. SD b. MMC c. SDD d. SIM

Computer Science & Information Technology

Assume you have the following declaration int beta[50];. Which of the following is a valid element of beta?

A. beta['2'] B. beta['50'] C. beta[0] D. beta[50]

Computer Science & Information Technology

________ computing provides access to software, programs, and data from anywhere through an Internet connection.

A. Client B. Service provider C. Cloud D. Three-way

Computer Science & Information Technology