Given the following declarations, which statement would allocate memory for the first item in the list?
struct Node
{
int item;
Node* link;
};
typedef Node* NodePtr;
NodePtr head;
a. head = new Node;
b. head = new int;
c. head->link=NULL;
d. head = new NodePtr;
a. head = new Node;
Computer Science & Information Technology
You might also like to view...
Thedata type that can store up to 65,535 characters in each record
a. Short text b. Paragraph c. Long text
Computer Science & Information Technology
Parental Control options are accessed through the ________ located in the Research task pane
A) Search for box B) Research options command C) Get services on Office Marketplace command D) Reference options drop down list
Computer Science & Information Technology