What are the disadvantages of arrays?
A. Data structure like queue or stack cannot be implemented
B. There are chances of wastage of memory space if elements inserted in an array are lesser than the allocated size
C. Index value of an array can be negative
D. Elements are sequentially accessed
Answer:B
What are the disadvantages of arrays?
A. Data structure like queue or stack cannot be implemented B. There are chances of wastage of memory space if elements inserted in an array are lesser than the allocated size C. Index value of an array can be negative D. Elements are sequentially accessed
Explanation: Arrays have a set size. Unoccupied positions cannot be used again if we insert elements that are smaller than the allocated size. In memory, there would be wastage.