To avoid memory leaks, all pointers to objects on the heap must be set to nullptr before they go out of scope It is false.
The literal pointer is indicated by the keyword nullptr. A prvalue of type std::nullptr t, it is. Any pointer type and any member type can be converted implicitly from nullptr to a null pointer value. Any null pointer constant, including the macro NULL and values of type std::nullptr t, can be converted in a similar manner.
The null pointer value is represented by the nullptr keyword. If an object handle, interior pointer, or native pointer type does not point to an object, you should specify this with a null pointer value. Use nullptr in native or managed code.
To know more about nullptr , visit
https://brainly.com/question/13045159
#SPJ4