Solved

Given the Following Declarations, Which Statement Would Put the Value

Question 56

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions