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...

In Normal view, the left side of the screen displays miniature images called ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

Jerry is in the process of setting up a Bluetooth device. He has enabled Bluetooth, paired the device, and located the correct device.   What is the next step in the Bluetooth connection process?

A. Enter the pin code. B. Discover the device. C. Sign in to Bluetooth. D. Test the connection.

Computer Science & Information Technology

Match the following types of programs with their purpose:

I. Trojan II. crimeware III. spyware IV. rootkit V. DoS A. causes the server to become overloaded and unable to provide timely service B. gives an outsider access to the computer's operating system at the admin level C. tricks the user into granting permission to install it by pretending to be something else D. monitors a user's behavior and reports it E. steals information about a user to impersonate them in order to steal money

Computer Science & Information Technology

In an asynchronous modulator, each separated signal will go first through a(n) ____________________ filter and then through an envelope detector circuit for an asynchronous demodulator.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology