struct nodeType{ int info; nodeType *link;};nodeType *head, *p, *q, *newNode;newNode = new nodeType;
Consider the accompanying code. What is the effect of the following statement?newNode->info = 50;
A. Stores 50 in the info field of the newNode
B. Creates a new node
C. Places the node at location 50
D. Cannot be determined from this code
Answer: A
Computer Science & Information Technology
You might also like to view...
By default, the Close button on a JFrame hides an application window.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology
The main difference between structures and classes is:
a. Whether they default to public or private access. b. How they access member variables. c. That classes always require new be used with them while structures do not. d. There is no difference between structures and classes.
Computer Science & Information Technology