Question: int a [ 5 ] ; a [ 0 ] = 0 ; a [ 1 ] = 1 0 ; a [ 2 ]

int a[5];
a[0]=0;
a[1]=10;
a[2]=100;
//COMMENT 1
a[3]=*a +2;
a[4]=*(a +2);
//COMMENT 2
What are the values stored in the array a when the program reaches COMMENT 1?(Do we know all of the values?) What about when the program reaches COMMENT 2?

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 Programming Questions!