We need to write a C/C++ code that will check whether the memory allocated to the program at the initial and the memory returned to the system is the same or not.
My idea is to find the memory usage at beginning and at ending and subtract.
But how to find the memory usage?
Any other idea please.