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;

d. head->item=3;

Computer Science & Information Technology

You might also like to view...

Which of the following are public IP network IDs?

A) 8.0.0.0 B) 172.16.25.0 C) 192.168.0.0 D) 172.32.0.0

Computer Science & Information Technology

Which of the following options allows you to convert the colors on your slides to the most readable grayscales for a black and white printer?

A. Monochrome            B. Black and White C. Pure Black and White D. Grayscale

Computer Science & Information Technology