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...

A video that becomes extremely popular because of recommendations and social sharing is a ________ video

A) tagged B) MMORPG C) viral D) streaming

Computer Science & Information Technology

Data represented in a table of numbers is easier to understand than data presented in a chart

Indicate whether the statement is true or false

Computer Science & Information Technology