Circular Linked list insertion

check why not giving correct input.

Hey @Gurjot
Problem is in your print function ,
since your while loop will terminate when temp->next =head.
This means while loop will not print last node and you have to print it outside loop.
So add this after while loop(i.e between line 51&52) cout<data<<">-";