When does a 'this' pointer get created?
What is the v-ptr?
What are pointers used for c++?
Can I learn c++ in a week?
explain the reference variable in c++?
When volatile can be used?
What is the full name of logo?
How do you flush std cout?
What is the stack?
Write a function to find the nth item from the end of a linked list in a single pass.
Is c++ a float?
Explain the extern storage classes in c++.
In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest.