What are the values in the array after execution of the following code?

int a[4] = {3, 7, 6, 2};
int i = 2;
a[i] = i + 1;
a[i + 1] = a[ i – 1];
a[1] = 5;

a) 5, 3, 3, 6
b) 3, 5, 3, 7
c) 5, 7, 3, 7
d) 5, 7, 2, 1


b) 3, 5, 3, 7

Computer Science & Information Technology

You might also like to view...

Which of the following is NOT a social networking site?

A) YouTube B) LinkedIn C) iTunes D) Facebook

Computer Science & Information Technology

What is Web font?

What will be an ideal response?

Computer Science & Information Technology

Many companies use sophisticated measurements to assess the effectiveness of their social media marketing strategy

Indicate whether the statement is true or false

Computer Science & Information Technology

A TV is marked down from $300 to $200.

Determine from the wording of the problem, which value is v1 and which is v2. Compute percent change, rounding decimal answers to two places. Express your result in a sentence stating how much the second value is less or greater than the first value. For example: "This year's sales are 50 percent less than last year's sales."

Computer Science & Information Technology