lundi 8 mars 2021

Does a pointer that's created by new get destroyed when its scope ends? [duplicate]

If I created a pointer by new keyword, and I didn't delete it. Will it be automatically destroyed when its scope ends or when the whole program ends?

Aucun commentaire:

Enregistrer un commentaire