GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Programming  >  C

 Print  |  
Question:  Memory Stack or Heap

Answer: which type of memory(stack or heap)is used by static and external variables?


February 02, 2009 16:23:59 #2
 impakt   Member Since: February 2009    Total Comments: 2 

RE: Memory Stack or Heap
 
"static" variables are hold in the heap memory and "auto" variables are stored on the stack.
     

 

Back To Question