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
You might also like to view...
Programmers use the pseudocode as a guide when coding the algorithm, which is the ____ step in the problem-solving process.
A. second B. third C. fourth D. fifth
When using a(n) ________, you can format individual words or phrases
Fill in the blank(s) with correct word
In C++ there are ____ square root functions all named sqrt, with the data type of the argument determining which function is actually called.
A. one B. two C. three D. four
When ____ occur during preliminary debugging, dummy print statements-statements that are temporarily inserted into the code to display status information on the screen-can be used to help locate the error.
A. syntax errors B. rules errors C. compile-time errors D. logic errors