What is the output of this code?

int arr[] = { 1, 2, 3};
for (int element : arr)
element+=10;
for (int element : arr)
cout << element << endl;
a. 1 2 3
b. 11 12 13


a. 1 2 3

Computer Science & Information Technology

You might also like to view...

Which of the following is not used to assign a value to a variable?

(A) InputBox statement (B) Dim statement (C) an assignment statement (D) MessageBox.Show statement

Computer Science & Information Technology

An Apache Web server's ____ host is the first declared virtual host in the configuration file.

A. default B. local C. physical D. logical

Computer Science & Information Technology

PCI adapters can install into a PCIe or PCI expansion slot

Indicate whether the statement is true or false

Computer Science & Information Technology

In which of the following areas are you least likely to find examples of automation?

A. Cleanup efforts in a toxic environment B. Technical writing C. Microprocessor manufacturing D. Retail store checkout lines

Computer Science & Information Technology