+ 2
linked lists must be preferred during??
when is it beneficial to use linked lists in c programming language
4 ответов
+ 2
Linked lists should work the same throughout all languages.
The linkedList is very quick at adding data into the list, especially at a specific index.
Adding to a specific index is the fall of arrays, because you must push everything over one spot.
In this case you will also need to grow the array if the elements are pushed to far back.
Keep in mind the array is a fixed size, while linked lists are not as their size can easily expand.
However, getting data is rather a slower process with linked lists.
While in comparison, getting data from an array is very fast.
So, use a linked list if your focus is adding data rather than getting and using it.
+ 1
c or c# ?
0
c
0
That makes sense but sorry C is not my language.