[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

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

Asked In :: Sopra Steria

Post Your Answer Here:     

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here