- NEW!
Help answer this question below.
You can make a for loop that will try to malloc an increasingly larger chunk of memory (and then free), and when it fails, this is how much memory you have.
There surely is a better (and faster) way, but this is the only way I know...
Oh and this method will count the virtual memory also...
What is the output of the following code?
#define EXMP 25
main ( )
{ int exmp = 35;
printf (ā
value of exmp is %dā,EXMP);
}
by sriram on August 10th, 2010
| 1 person likes this
i have windows 7 professional (64bit) os.pls guide me how to downlord turbo c compiler which would support my os configurations..
by Sakthi_A on November 11th, 2010
| 1 person likes this
Im trying to create a program using c++, it compiles but when i go to run it it keeps repeating before i press anything.
by Big Guy on November 1st, 2010
| 1 person likes this
draw a flowchart to find the greatest of three numbers?
by mounica on October 21st, 2010
| 1 person likes this
I need a simple syntex code for duplicate elimination in C
by mrwigglesjean on September 2nd, 2010
| 1 person likes this
You're reading How can I find out, through a C prog, how much memory is available?
Comments