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] << “ “;

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] << “ “;

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


b) 10 2 35 7

Computer Science & Information Technology

You might also like to view...

A document that defines how an organization deals with some aspect of security is a(n) __________

a. Security policy b. Business plan c. Security update d. None of the above

Computer Science & Information Technology

Match each item with a statement below:

A. a type of serial device that was developed by Cisco and T3Plus Networking B. allow the simultaneous use of multiple Network layer protocols and are required for each protocol that uses PPP C. an encapsulation type for serial interface communications D. a packet switching and encapsulation technology that functions at the Physical and Data Link layers of the OSI reference model E. switching equipment supplied by a telecommunications provider that serves as a connection to the public data network (PDN) F. map virtual circuits to layer 3 protocol addresses G. a table in RAM that defines the remote interface to which a specific DLCI number is mapped H. virtual interfaces associated with a physical interface I. a routing technique that reduces the chance of routing loops on a network

Computer Science & Information Technology

If the Reading view button is gray, the page is already in Reading view.? ____________________

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

Computer Science & Information Technology

In the context of office suites, the term ___________ refers to a component, such as a word processing program.

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

Computer Science & Information Technology