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

b. 11 12 13

Computer Science & Information Technology

You might also like to view...

The purpose of ____ is to evaluate system security by attacking it.

A. penetration testing B. network testing C. system testing D. process testing

Computer Science & Information Technology

How can an external referenced block be updated?

What will be an ideal response?

Computer Science & Information Technology