Multiple Choice
Given the following declarations, which statement would put the value of 3 in the item part of the first node in the linked list?
Struct Node
{
Int item;
Node* link;
};
Typedef Node* NodePtr;
NodePtr head;
Head = new Node;
A) head=3;
B) head.item=3;
C) *head.item=3;
D) head->item=3;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q51: If NodeTypePtr is defined to be a
Q52: The discipline for a stack is:<br>A) .data
Q53: Which of the following loops correctly uses
Q54: When adding a node to a linked
Q55: Apart from constructors, the operations for a
Q57: The function used to get the data
Q58: Apart from constructors, the operations for a
Q59: When would you use a linked list
Q60: You can define a stack that will
Q61: To remove an item from the stack,