+ 2

linked lists must be preferred during??

when is it beneficial to use linked lists in c programming language

28th Jul 2017, 5:26 PM
Pratik Pravin Babar
Pratik Pravin Babar - avatar
4 Respuestas
+ 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.
28th Jul 2017, 6:52 PM
Rrestoring faith
Rrestoring faith - avatar
+ 1
c or c# ?
28th Jul 2017, 5:45 PM
sneeze
sneeze - avatar
0
c
28th Jul 2017, 5:46 PM
Pratik Pravin Babar
Pratik Pravin Babar - avatar
0
That makes sense but sorry C is not my language.
28th Jul 2017, 5:57 PM
sneeze
sneeze - avatar