- NEW!
Help answer this question below.
You could try making a pointer and starting it at a position, say 0x0100, the starting point for .COM applications. You could continually increment this pointer, incrementing a counter variable for each location that the program is allowed to access. I'm not sure exactly how well this would work though, you'd likely crash the program trying to access a memory location outside of the correct segment, but the other two answers covered the best options.
I think there was a function to find the number of bytes of free memory a computer has, but I don't remember it. It might be part of the Windows API.
Anybody want to play C Programming Roulette?
by POP Fan on August 18th, 2010
| 1 person likes this
Problems with dynamic allocation.
by POP Fan on August 31st, 2010
| 1 person likes this
How C Programming language is similar to English language ?
by manasi on October 2nd, 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
What's a good algorithm for performing Quadratic Regression on a set of points?
by POP Fan on September 7th, 2010
| 1 person likes this
You're reading How can I find out, through a C prog, how much memory is available?
Comments