struct Node * insertAtFront(struct Node *s) { struct Node *t,*p; p=s; while(p->next != s){ p=p->next; } t=allocate(); printf("Enter Data:"); scanf("%d",&t->data); t->next=s; p->next=t; return t; }