Question: What are the values in the array after execution of the following code? int a [ 4 ] = { 3 , 7 , 6

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;
Group of answer choices
3,5,3,7
5,7,3,7
5,3,3,6
5,7,2,1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!