juanemilio8833 juanemilio8833
  • 09-08-2017
  • Computers and Technology
contestada

To help prevent memory leaks from occurring in c++ 11, a ________ automatically deletes a chunk of dynamically allocated memory when the memory is no longer being used.

Respuesta :

Noah11012
Noah11012 Noah11012
  • 09-08-2017
The answer is smart pointers. Smart pointers are wrappers for raw pointers or as I like to call them dumb pointers.

In C++, it is guaranteed that the deconstructor will be called when the object goes out of scope.
Answer Link

Otras preguntas

Check all that apply. sec is undefined for =
What is “the process in which electrons are rearranged without direct contact”???
Name and describe 3 major characteristics of vascular plants?
What is this answer helpppppppppo
PLEASE!!!!!!!The adjoining figure shows two circles with the same center. The radius of the larger circle is 10 cm and the radius of the smaller circle is 4 cm.
How many DAYS occur between a new moon and a first quarter moon?
PLZ HELP AND HURRY I DIDNT READ THIS!! WILL GIVE BRAINILIST!! THANK YOUUU !! “Violence begets violence"-in Macbeth, one murder is the catalyst for another murd
Where did the Central Pacific begin building the transcontinental railroad? Massachusetts California Nebraska Missouri
If 200,4 g of water is mixed with 101.42 g of salt, the mass of the final solution would be reported as A) 302 8. B) 3008 C) 301.8 8. D) 301.828
Call someone please answer quick this is due at 8:50