I hope to check the allocated memory for one pointer with QT, but which function can we use?
like this:
Qt Code:
ClassA *a = new ClassA(); int size = sizeof(a)To copy to clipboard, switch view to plain text mode
I hope to check the allocated memory for one pointer with QT, but which function can we use?
like this:
Qt Code:
ClassA *a = new ClassA(); int size = sizeof(a)To copy to clipboard, switch view to plain text mode
Hi,
is your friend and normal C++.
Lykurg
Size of pointer is usually word size. They just hold addresses, remember ?
The size of class is size of object. sizeof(*a), in ur case
Bookmarks