Singly Circular linked list Insert operation

why it is not printing anything??

@sharmakaran1244
You are using the same variable for iterating and comparison - head.
Instead , create a new variable for iterating and keep the head for comparison only. You cannot use it for both or otherwise the condition will never hold true.
Do something like this
node *temp = head;
while(temp->next!=head)
{
temp=temp->next;
}

thanxxxx a lot…Silly mistake :stuck_out_tongue_winking_eye:

@sharmakaran1244
Kindly mark your doubt as resolved in your doubts section if your issue is resolved.