N
NewToCPP
Is there any way I can check the size of the Memory allocated by "new"?
NewToCPP said:Is there any way I can check the size of the Memory allocated by "new"?
NewToCPP said:Is there any way I can check the size of the Memory allocated by "new"?
Is there any way I can check the size of the Memory allocated by "new"?
NewToCPP said:Victor & Gavin,
Thanks for the replies.
Class ABC
{
public:
int* p;
ABC {p = new int[10]; }
~ABC { delete [] p; }
};
ABC* a;
a = new ABC;
In this example constructor of ABC is creating more memory. When I did
the new on ABC is there any way to find out how much memory we used. I
mean I want to know if I can find it using any methods or something
like that.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.