Solved

Which of the Following Statements About Pointer Initialization and Values

Question 8

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents