Computer Science, asked by sivakailesh175, 7 hours ago

What are the advantages of arrays? a) Objects of mixed data types can be stored b) Elements in an array cannot be sorted c) Index of first element of an array is 1 d) Easier to store elements of same data type​

Answers

Answered by candycanepiya
10

Answer:

The answer is b because the elements in an array are stored in a contiguous block of memory, so it is easier to access the elements of an array through indexing.

Explanation:

Hope it may help you..

Answered by archanajhaasl
0

Answer:

The advantage of arrays is that it is Easier to store elements of the same data type​ i.e.option(d).

Explanation:

The advantages of arrays are as follows:-

  • Arrays use a single name to represent numerous data elements of the same type.
  • The elements in arrays can be accessed at random using the index number.
  • For all of its elements, arrays store elements of the same data type and allocate memory in contiguous memory regions. As a result, in the case of arrays, there is no probability of extra RAM being allocated. This prevents memory overflow and shortages in arrays.
  • Other data structures, such as linked lists, stacks, queues, trees, graphs, and so on, can be built using arrays.
  • Matrixes are represented using two-dimensional arrays.

Hence, the correct answer among the given options is Easier to store elements of the same data type​ i.e.option(d).

#SPJ2

Similar questions