disadvantage of the single dimensional array
Answers
Answered by
2
Answer:
- Insertion and deletion are quite difficult in an array as the elements are stored in consecutive memory locations and the shifting operation is costly.
- An array is a static structure (which means the array is of fixed size). ...
- The number of elements to be stored in an array should be known in advance.
Explanation:
please mark as branlist
Answered by
2
Explanation:
Disadvantages of Arrays
The number of elements to be stored in an array should be known in advance.
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.
Insertion and deletion are quite difficult in an array as the elements are stored in consecutive memory locations and the shifting operation is costly.
Allocating more memory than the requirement leads to wastage of memory space and less allocation of memory also leads to a problem.
Similar questions