Discussion
What are the disadvantages of arrays?
Answer: B
Correct answer: There are chances of wastage of memory space if elements inserted in an array are lesser than the allocated size
An array’s size is fixed when it is created, so if fewer elements are stored than were allocated, the unused cells are still occupied memory. That is the classic drawback, and it is what dynamic structures such as linked lists and growable lists exist to avoid. Stacks and queues can be built on arrays, indices are never negative, and elements are reached directly by index rather than sequentially.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development