Computer Science, asked by akhand25111, 1 year ago

What is the index number of the last element of an array with 9 elements

Answers

Answered by aanyaagrawal
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 StaceeLichtenstein
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