What is the purpose of setting a pointer to nullptr after deleting its dynamically allocated object?
Options
- A. To allocate new memory automatically
- B. To avoid leaving the pointer pointing to the released memory
- C. To increase the size of the allocated memory
- D. More than one of the above
- E. None of the above