Hi
I have a question about the free store in C++. first of all, what is that?
second, what is the difference of creating and declaring a pointer in these following two methods
Qt Code:
Cat * ptrToCat: new Cat; delete ptrToCat;To copy to clipboard, switch view to plain text mode
thnx for your time in advance


Reply With Quote

). This is also a dangling pointer, because it points to some random address (although some compilers might set it to 0, but you shouldn't rely on that).
)
.

Bookmarks