If I create a pointer using the "new" keyword inside a function and pass that to a class constructor, what happens to the memory space and the object there? Will it live until I delete it in the class' destructor? The function leaving its scope shouldn't hurt it right? (The class object created is then returned from this function and used elsewhere)



LinkBack URL
About LinkBacks




CornedBee