Home / MCQ Bank / Computer
Computer Structure And Union

Which of the following will stop the loop at the last node of a linked list in the following C code snippet? struct node { struct node *next; };

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option B • while (p->next != NULL) { p = p->next; }

Related Computer Questions

Ctrl+S Shortcut key is used in Ms Word to____________? Which of the following visibility property value is described by The element is not visible, but the layout of surrounding elements is not affected? The filter by selection feature allows you to filter: What is the primary use of the @final decorator in Python? What is the Height of the root node of ternary tree?