is there any method to know the dynamic size of an object?
I mean, i have some objects that can increase their size during the execution and i would like to monitorate it.
I need some method like sizeof() but that it can be used with dynamic object and that it returns the actual memory usage for that object..
Thank you in advance,
There is no such in-built feature provided by the language.
The constructs that langauge provides doesn’t need you to know the size as such and the user of the language is abstracted from it.
In case You still need it You the user will have to keep track of it yourself.