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;
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)
If the
Indicate whether the statement is true or false
A(n) ________ check box is equivalent to answering no
Fill in the blank(s) with correct word
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