void headprint(node* head,int k){
node* fast = head,*slow = head,t = head;
int c = 0;
while(c<k && fast!=NULL && fast->next!=NULL){
fast = fast->next->next;
slow = slow->next;
c++;
}
node tem = slow->next;
slow->next = NULL;
fast->next = head;
print(tem);
}
can u see what is wrong in my code
