MCQs > IT & Programming > Embedded C >

What function will the following code perform?

void delete_element ( node *m, int n)

{

node *p, *k;

k = search ( m, n);

if (k = = ( node *) NULL)

return;

p = k –> next;

k –>next = p –>next;

free (p);

}


Embedded C MCQs

What function will the following code perform?

void delete_element ( node *m, int n)

{

node *p, *k;

k = search ( m, n);

if (k = = ( node *) NULL)

return;

p = k –> next;

k –>next = p –>next;

free (p);

}


Answer

Correct Answer:

It will delete the element that is next to a given element in the list.

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Embedded C Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

More Embedded C MCQ Questions

search

Embedded C Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it