What is wrong with the following function?void* _retrieve (BST_TREE* tree,void* dataPtr, NODE* root){ if (tree->compare(dataPtr, root->dataPtr) < 0) return _retrieve(tree, dataPtr, root->left); else if (tree->compare(dataPtr,root->dataPtr) > 0) return _retrieve(tree, dataPtr, root->right); else return root->dataPtr; }}
A. The return type should be void, not void*.
B. Its name should be BST_Retrieve.
C. A call to _retrieve(tree,dataPtr,root) is needed.
D. The case when the data is not in the tree is missing.
Answer: D
You might also like to view...
Every field on a form has certain characteristics about the field stored in the ________
Fill in the blank(s) with correct word
Most organizations do not need the detailed level of classification used by the military or federal agencies.
Answer the following statement true (T) or false (F)
The text contained between title tags is:
a. Not displayed by browsers b. Displayed in the title bar of the browser window c. Not used by search engines d. Never seen by your web page visitor.
The primary advantage of the ____________________ interface is the cables are thinner, longer, more flexible, and less susceptible to interference.
Fill in the blank(s) with the appropriate word(s).