Solved

Which of the Following Statements About Pointer Initialization and Values

Question 12

Multiple Choice

Which of the following statements about pointer initialization and values is false?


A) Prior C++11, the value specified for a null pointer was 0 or NULL.
B) When 0 is assigned to a pointer, it's converted to a pointer of the appropriate type.
C) The value 0 is the only integer value that can be assigned directly to a pointer variable without first casting the integer to a pointer type.
D) In the new standard, you should use the constant null_ptr to initialize a pointer instead of 0 or NULL.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions