Which of the following statements about pointer initialization is true?

A. Pointer constants can only point to constants.
B. Pointer constants can only be initialized to null pointers.
C. Pointer constants are automatically set to null by the compiler.
D. The data variable must be declared before it can be used for pointer initialization. 
E. To initialize a pointer to the address of a variable, the variables identifier is suffixed with the indirection operator (*).


Answer: D

Computer Science & Information Technology

You might also like to view...

What three types of wiring are used to reduce interference form noise?

What will be an ideal response?

Computer Science & Information Technology

When you manually resize an artboard, the mouse pointer becomes a ____.

A. mini ruler B. white arrow C. hand pointer D. double-sided arrow

Computer Science & Information Technology

Let modify be a public member function for the class USStates which modifies the attributes of one object of the class. To change the ith object of the class requires the following call to modify:

a. modify (USStates); b. modify (USStates[i]); c. modify (stateArr); d. stateArr.modify (USStates[i]; e. stateArr[i].modify ( );

Computer Science & Information Technology

Which of the following may request a company to develop a disaster recovery plan?

A) Clients B) Insurance company C) Governmental agency D) All of the above

Computer Science & Information Technology