lundi 3 juin 2019

When to delete a pointer when it passage as message?

In C++ , When a pointer is passed as message . Which is received at many places . What is the correct place to delete the pointer?

Is there any way to clear this kind of memory allocated like java garbage collector

Aucun commentaire:

Enregistrer un commentaire