Is there a way in C to find out the size of dynamically allocated memory?
For example, after
char* p = malloc (100);
Is there
If you use malloc then you can not get the size. In the other hand, if you use OS API to dynamically allocate memory, like Windows heap functions, then it's possible to do that.