Multiple Choice
Which of the following loops correctly uses iter as an iterator to move through the nodes of the linked list?
NodePtr iter; //a pointer to a node
A) whileiter != NULL) iter++;
B) whileiter != NULL) iter=iter->link;
C) foriter=NULL; iter != NULL; iter=iter->link)
D) for iter=head; iter != NULL; iter=iter->link)
Correct Answer:

Verified
Correct Answer:
Verified
Q48: Given the following stack declaration, which of
Q49: Removing data from a stack is called
Q50: If you write a linked list class,
Q51: If NodeTypePtr is defined to be a
Q52: The discipline for a stack is:<br>A) .data
Q54: When adding a node to a linked
Q55: Apart from constructors, the operations for a
Q56: Given the following declarations, which statement would
Q57: The function used to get the data
Q58: Apart from constructors, the operations for a