Insert at head in Circular Linked List

I have implemented Circular Linked List. When I give output 6 5 4 3 2 1 -1, and then print it, it is showing Circular Linked List to consist of 1 2 3 4 5, basically first data (i.e. 6 here )does not get inserted. Can you please explain why?
Link to code->https://ide.codingblocks.com/s/598197

check again
it is printing complete list

image

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.