Question: int arr [ 1 0 ] = { 1 0 0 , 9 0 , 8 0 , 7 0 , 6 0 , 5

int arr[10]={100,90,80,70,60,50,40,30,20,10};
For the above declared integer array of size 10(that is, the array holds 10 integer elements), the last element in the array has an index of 10. That is, we could access its value (which coincidentally is also 10) and display it to the console as follows:
cout << arr[10];

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!