Data Structures :: Linked Lists - Discussion
Home > Data Structures > Linked Lists > MCQs Questions Discussion
13 / 48
Choose the correct option.
The following while loop is to remove duplicates from an existing list having a head pointer pointing to the first node.Which code will replace ____
current=head;
while(current->next!=NULL)
{
if (current->data == current->next->data)
{
____
}
else
{
current = current->next;
}
} ?
Ap=current->next->next;free(current);current->next = p;
Bp=current->next;free(p);
Cp=current->next;free(current->next);current->next=p;
Dp= current->next->next;free(current->next);current->next = p;
Answer: Option (Login/Signup)
Show Explanation