Linked list insert at head


please tell me why is it not printing the linked list.

hey @kamya, you should pass head using reference in insert function as you are modifying the head which is used for printing. https://ide.codingblocks.com/s/109111