I assume you are referring to implementation of Abstract Data Types like Stacks and Queues.
Arrays have capacity limits which you set upon declaring them. If you have date which has a definite size, then using arrays is okay.
But if you have data which size changes at runtime, then just use linked lists because linked lists could constantly add nodes whenever needed.
arrays need continuous memory allocation for their creation but in linked list the memory allocation need not be continuous....
Copyright © 2026 eLLeNow.com All Rights Reserved.