Sobes.tech
Junior

What will happen if you call delete operator on a null pointer (nullptr)?

sobes.tech AI

Answer from AI

Nothing will happen. The C++ standard guarantees that calling delete on a null pointer is a safe operation and will not lead to undefined behavior or errors.