tell me how to calculate how much memory a c program takes
please..........
tell me how to calculate how much memory a c program takes
please..........
If you're on a POSIX system, try getrlimit().
You don't. The system does it for you.
On Windows you use a tool like Process Explorer to show you the application's private bytes statistic etc.
My homepage
Advice: Take only as directed - If symptoms persist, please see your debugger
Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"