The main differences between a linked list and an array are:
• Arrays are faster in access than a link list for random access with index.
• Arrays are not dynamic while a link list is.
• Arrays are easier to sort than a link list.
• The elements of link list can be deleted/inserted while arrays canno
• Arrays occupy the same block of memory, while a link list is distributed.
• Array objects are automatically created by a compiler, while link lists are not.
• Arrays are part of most compilers, while link lists are not.
• Arrays are syntactically simple to read.
• Arrays are faster in access than a link list for random access with index.
• Arrays are not dynamic while a link list is.
• Arrays are easier to sort than a link list.
• The elements of link list can be deleted/inserted while arrays canno
• Arrays occupy the same block of memory, while a link list is distributed.
• Array objects are automatically created by a compiler, while link lists are not.
• Arrays are part of most compilers, while link lists are not.
• Arrays are syntactically simple to read.
Comments
Post a Comment
https://gengwg.blogspot.com/