void traverse(struct Node *s){ struct Node *p; p=s; do{ printf("%d\t",p->data); p=p->next; }while(p != s); }