Following is the function to traverse the circular linked list
void traverse(){struct node *ptr=first;printf("Linklist is :n");while(ptr->next!=first){printf("%d ",ptr->data);ptr=ptr->next;}printf("%d",ptr->data);}