0

Dynamic link list

how to create dynamic link list in c?

5th Aug 2018, 8:29 AM
Sachin Bhandari
3 ответов
0
https://code.sololearn.com/c3i52Y35Dh3u/?ref=app To iterate through the list make a new pointer, set it to 'head' and move while your node != null. To add an item, get to the last node of the list, allocate memory for a new item, set next->value. It is worth making a pointer that points to the last item. etc.. Hope it helps.
5th Aug 2018, 10:15 AM
Steppenwolf
Steppenwolf - avatar
0
Steppenwolf thank you. can you tell me the code in c. I Am not able to create the logic
5th Aug 2018, 2:49 PM
Sachin Bhandari
0
Check the code once again. I have modified it. Sachin Bhandari
7th Aug 2018, 11:21 PM
Steppenwolf
Steppenwolf - avatar