Disadvantage of array
Answers
Answered by
7
1] The number of elements to be stored in an array should be known in advance.
2] An array is a static structure (which means the array is of fixed size). Once declared the size of the array cannot be modified. The memory which is allocated to it cannot be increased or decreased.
3] Insertion and deletion are quite difficult in an array as the elements are stored in consecutive memory locations and the shifting operation is costly.
4] Allocating more memory than the requirement leads to wastage of memory space and less allocation of memory also leads to a problem.
I hope this will help you!!!
Similar questions