GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  OOPS
Go To First  |  Previous Question  |  Next Question 
 OOPS  |  Question 12 of 258    Print  
How can I find out how much memory is available?

  
Total Answers and Comments: 4 Last Update: March 27, 2006   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
July 20, 2005 12:28:53   #1  
santosh        

RE: How can I find out how much memory is available?
Use malloc()
 
Is this answer useful? Yes | No
July 23, 2005 01:24:49   #2  
Girish        

RE: How can I find out how much memory is available?
i don't think the malloc() is a right answer for this . malloc() allocate memory in number of bytes from heap segment .
 
Is this answer useful? Yes | No
September 21, 2005 03:18:14   #3  
yogeshpanda Member Since: September 2005   Contribution: 50    

RE: How can I find out how much memory is available? ...
By using the sizeof operator we can calculate the total number of memory allocated to the program`s variables.
 
Is this answer useful? Yes | No
March 27, 2006 06:00:56   #4  
Yashwant S pinge        

RE: How can I find out how much memory is available?
In linux there is a memory debugging tool valgrind.With the help of valgrind you can easily check the memory allocation or memory deallocation.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape