Computer Science, asked by voledey198, 2 months ago

write limitations of one dimensional array​

Answers

Answered by ItszBrainlyQueen
2

Once declared the size of the array cannot be modified. The memory which is allocated to it cannot be increased or decreased. Insertion and deletion are quite difficult in an array as the elements are stored in consecutive memory locations and the shifting operation is costly.

Answered by eshwargoudgoud504
1

Explanation:

Limitations of one dimensional array

  • the dimension of an array is determined the moment the array is created, and cannot be changed later on;
  • the dimension of an array is determined the moment the array is created, and cannot be changed later on;the array occupies an amount of memory that is proportional to its size, independently of the number of elements that are actually of interest;
  • the dimension of an array is determined the moment the array is created, and cannot be changed later on;the array occupies an amount of memory that is proportional to its size, independently of the number of elements that are actually of interest;if we want to keep the elements of the collection ordered, and insert a new value in its correct position, or remove it, then, for each such operation we may need to move many elements (on the average, half of the elements of the array); this is very inefficient.
Similar questions