How can you determine the size of an allocated portion of memory?

Posted Answers

You can’t, really. free() can , but there’s no way for your program to know the trick free() uses. Even if you disassemble the library and discover the trick, there’s no guarantee the trick won’t change with the next release of the compiler.


Answer by: Anonymous
 
 

This question / answer was posted here to get paid, but not done as promised, so this question / answer should be deleted from the site.


Answer by: Anonymous