- 2
To create a linked list, declaring the number of notes in the code, is necessary?
a. Yes b. No
6 ответов
+ 3
No
+ 2
Assuming you meant nodes (not notes), it depends, whether the code author wants such information to be cached.
+ 1
Adam M. El-dodo this is a baby question, and the answer, obviously, is no
+ 1
No.. Because when u create a linked list .. This will allocate a memory in heap section which provide dynamic nature to grow and shrink the list at any time...when heap is full u may get some error while creating the node u have to check these thing and type conversion need to do.
+ 1
You can think of them as links in a chain. You can (with the right tools) cut one off or add one in. That's actually the real reason to use linked lists instead of arrays.
+ 1
Because arrays are MUCH faster on most machines.