+ 1

Regarding linked list (delete function)

Hey can anyone explain me the linked list code. I am stuck at a line which says while (q->link->link!=NULL) /*not understood this part*/ { if(q->link->info==data) { q->link=temp->link;. free (temp); return; } q=q->link; } Here q is a pointer pointing to node temp is a variable It is a structure struct node { int data; struct node*link; } I don't understand the double arrow used please help me clarifying it

9th Feb 2020, 11:37 AM
Yash Vardhan Shalihotri
Yash Vardhan Shalihotri - avatar
1 Resposta
+ 1
Seems some code is breaking... I could not find any information of info.. Could you please post entire code once to check ? I got your message that what portion you didn't get...so entire code might help me to answer your question
10th Feb 2020, 3:39 AM
Ketan Lalcheta
Ketan Lalcheta - avatar