Computer Science, asked by iabhaysingh2000, 5 months ago

If we stored five elements or data items in an array, what will be the index
address or the index number of the array's last data item? *
O a. 4
4
O b. 5
O c.3
O d. 88​

Answers

Answered by kusumchoudhary757
1

Answer:

4 is the ans.

it's write ans. bro

Answered by remyanairlm
0

Answer:

The index number of the last data item will be 4 i.e. option a).

Explanation:

An array is a homogenous data structure that stores multiple values of the same data type linearly in a contiguous fashion.

Let a is an array that stores 10 data items. It's index will range from a[0] to a[9].

Similarly, if an array b is used to store 5 data items, its index will range from b[0] to b[4].

Therefore, as per the given question, the index of the last data item in an array of size 5 will by 4.

Hence, the correct answer is option a) 4.

Similar questions