What is wrong with the following function?void _traverse (NODE* root, void (*process) (void* dataPtr)){   if (root)   {       process (root->dataPtr);       _traverse (root->left, process);       _traverse (root->right, process);   } // if   return;}

A. Traversal should be postorder.
B. Traversal should be inorder.
C. Data, left and right should be accessed as root.data, root.left and root.right.
D. Root should be of type NODE, not NODE*.


Answer: B

Computer Science & Information Technology

You might also like to view...

Use the ________ element to create a link

Fill in the blank(s) with correct word

Computer Science & Information Technology

Using Windows To Go, technicians can prepare standardized corporate Windows 8.1 ________ from which users can access their desktop on any machine in alternative work locations such as home, hotel, or client computer location. All necessary files, applications, and the Windows 8.1 operating system are hosted on a portable USB drive such as a thumb drive or portable hard drive

a. Applications b. Files c. Images d. Passwords

Computer Science & Information Technology

The _____ describes a system at the beginning of system operation and includes the results of performance and acceptance tests for the operational system.?

A. ?functional baseline B. ?operational baseline C. ?allocated baseline D. ?product baseline

Computer Science & Information Technology

Which of the following is the default location for temp files in Windows 7?

A. C:\Windows\Temp B. C:\Windows\System Files\Temp Files\ C. C:\System Files\Temp D. C:\System\Temp Files\

Computer Science & Information Technology