+1 vote
in Data Structures & Algorithms I by (110k points)
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

The origin of the question is Array and Array Operations topic in portion Abstract Data Types of Data Structures & Algorithms I

The question was asked during a job interview.

1 Answer

+1 vote
by (412k points)
selected by
 
Best answer
Right choice is (b) There are chances of wastage of memory space if elements inserted in an array are lesser than the allocated size

To explain: Arrays are of fixed size. If we insert elements less than the allocated size, unoccupied positions can’t be used again. Wastage will occur in memory.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.

Categories

...