A user needs a function which calculates how much heap memory is available in the executable version of a C++ program. When the program is loaded to run and is started, the first procedure called will be that function. The function itself will execute the new operator to acquire chunks of memory until the heap is completely occupied, i.e. exhausted. Also, during the process of acquiring heap memory, the function will keep track of the amount of heap in bytes that it is acquiring. When the function has acquired all of the heap memory that it finds available, it will display the count of bytes which it has acquired. For this problem please write a small driver main program whose sole purpose is to execute the function which counts and reports the bytes which it finds available in the calling program's heap.. Also, please write the small byte-counting function.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here