I have a doublylinked-list which i already inserted some values, but when i try to make search&update this loop does not terminate
although i get 0 when i check tail->next, temp never becomes NULL. How can i solve this problem?Code:if(head!=NULL) { temp = head; while(temp!=NULL) { if(temp->row==i) temp->data = 100; else temp=temp->next; } }