16. Why did C++11 introduce the nullptr constant when we already have NULL?
What will be an ideal response?
nullptr gives us type safety. NULL is used semantically as an empty pointer, but the compiler also treats it like the number 0. This means a 0 can be substituted anywhere for NULL. This could cause problems if we ever need to differentiate between 0 and the empty pointer. nullptr solves this problem because it is not the same as 0. It is a new constant that represents an empty pointer.
You might also like to view...
In the PivotTable Field List, you can rearrange existing fields by using one of the four areas at the bottom of the layout section
Indicate whether the statement is true or false
What is the R Square value and how is it related to the correlation coefficient?
What will be an ideal response?
____ is a fundamental process that repeats instructions until a condition is true or while a condition is true.
A. Iteration B. Concatenation C. Looping D. Documenting
Which of the following is a reference ID to a logical drive used by the iSCSI initiator?
A. iSCSI qualified name B. IQN identifier C. iSCSI target ID D. iSCSI LUN