Linked List in C/C++ - Inserting a node at beginning @mycodeschool
Linked List in C/C++ - Inserting a node at beginning  @mycodeschool
Uploaded April 2013 | Updated September 2026, 2 weeks ago
See complete series on data structures here:
youtube.com/playlist?list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P
In this lesson we will write C program to insert a node at the beginning of a linked list.

Pre-requisites:
Good knowledge of pointers, scope of variables and dynamic memory allocation.
Check this lesson on dynamic memory allocation:
youtube.com/watch?v=_8-ht2AKyH4&list=PL2_aWCzGMAwLZp6LMUKI3cc7pgGsasm2_&index=7
See complete series on pointers here:
youtube.com/playlist?list=PL2_aWCzGMAwLZp6LMUKI3cc7pgGsasm2_

Please drop your questions (if any) in comments. We will be glad to answer.
Linked List in C/C++ - Inserting a node at beginningPointers to Pointers in C/C++Finding all factors of a numberFibonacci Sequence - Anatomy of recursion and space complexity analysisFinding Prime numbers - Sieve of Eratosthenesmycodeschool.com - Walk-through and Getting started.Find merge point of two linked listData structures: Introduction to graphsDelete a node from Binary Search TreeBinary tree traversal: Preorder, Inorder, PostorderIntroduction to pointers in C/C++Reverse a string or linked list using stack.
mycodeschool |

Linked List in C/C++ - Inserting a node at beginning

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER