
Array II-135
11. What are the drawbacks of linear array?
Ans: Following are the drawbacks of linear array:
1. The number of elements, which are to be stored in an array, is to be known first.
2. When an array is declared, memory is allocated to it. If array is not filled completely, the vacant
place occupies memory.
3. Once the array is declared, its dimension cannot be changed.
4. We cannot work with elements of dissimilar data type.
5. Insertion and deletion of an element is difficult in an array as elements are stored in contiguous
memory locations.
12. Explain various operations that can be done on an array.
Ans: Besides deleting / inser ...