Array contains following limitations.
• The size of array must be known in advance before using it in program.
• Increasing size of the arrays is a time taking process. It is almost impossible to expand the size of the array at run time.
• All the elements in the array need to be continuously stored in the memory. in the array needed shifting of all its predecessor.
Linked list is the data Structures which can overcome all the limitations of an array. Using linked list is useful because
• it's allocates the memory dynamically. All the nodes of linked list are non-countiguesly Stored in the memory and linked together with the help of pointers.
• Sizing is no longer a problem since we do not need to define it's size at the time of declaration, list grows as per the program demand and limited to the avilable memory space.



👍keep growing bro
ReplyDelete