What is the index number of the last element of an array with 9 elements
Answers
Answered by
13
What is the index number of the last element of an array with 9 elements? Explanation: Because the first element always starts at 0. So it is on 8 position.
Answered by
4
8 is the correct answer to the given question
Explanation:
- The array is the collection of the same datatype of data. To access the memory of the array we used an index.The array starts with the 0 value it means to access the 1 element in the array we will use the index 0.
- The last of the array is calculated by the formula ;
array[lastelement]=size-1 ;
- So here the last element is 9 so the index will be
size =9;
array-index of last element is =9-1=8.
Learn More:
- https://brainly.in/question/5900836
Similar questions
Psychology,
6 months ago
Social Sciences,
6 months ago
Accountancy,
11 months ago
Math,
11 months ago