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:
Verified
Q3: What does the following statement declare? int
Q4: A function that modifies an array by
Q5: When a compiler encounters a function parameter
Q6: All of the following can cause a
Q7: To prevent modification of a built-in array's
Q9: Sizeof:
A) Is a binary operator.
B) Returns the
Q10: Which of the following is false about
Q11: Which of the following best describes the
Q12: Which of the following is not a
Q13: Pointers cannot be used to:
A) Contain memory
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents