Inserting a Node at the Front
10
15
7
null
head_ptr
entry
13
insert_ptr
13
insert_ptr = new Node;
insert_ptr->data = entry;
insert_ptr->link = head_ptr;
Make the head_ptr point to the new head of the linked list.
Previous slide
Next slide
Back to first slide
View graphic version