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

Which of the following methods are in java.util.List?

a. add(int index, E element) b. get(int index) c. set(int index, E element) d. remove(int index) e. subList(int fromIndex, int toIndex)

Computer Science & Information Technology

If the symbol is not removed from a formula, Access will still perform the formula

Indicate whether the statement is true or false

Computer Science & Information Technology

A(n) ________ check box is equivalent to answering no

Fill in the blank(s) with correct word

Computer Science & Information Technology

COGNITIVE ASSESSMENT Some touch screens recognize when you touch the screen with two fingers or two hands. If you are looking for a device on which you can do this, what type of touch screen should you search for?

A. multi-touch B. dual-touch C. twin-touch D. phase-touch

Computer Science & Information Technology