Examlex

Solved

Example Code Ch 13-2

question 21

Multiple Choice

Example Code Ch 13-2
Assume that a linked list is implemented using the Node class where a Node contains instance data of int info; and Node next; where next references the next Node in the linked list. Also assume that head references the first Node in the list.
-Refer to Example Code Ch 13-2: Assume Node temp is currently set equal to head. Which of the following while loops could be used to iterate through each element of a linked list?


Definitions:

Related Questions