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

Where is Windows Help and Support located?

A) in the notification area B) on the Task bar C) on the Start menu D) on the desktop

Computer Science & Information Technology

Android ________ checks your project for common errors, and makes suggestions for better security-, enhanced performance, improved accessibility, internation-alization- and more. Some checks occur as you build your apps and write code.

a. Cleanser. b. Lint. c. Error Checker. d. None of the above.

Computer Science & Information Technology