when using singly linked listwe can easily insert an element at the head of the listas shown in figure and code fragment the main idea is that we create new nodeset its next link to refer to the same object as headand then set head to point to the new node figure insertion of an element at the head of singly linked list(abefore the insertion(bcreation of new node(cafter the insertion