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?


June 06, 2009 14:19:08 #3
 vivekbansal20   Member Since: June 2009    Total Comments: 1 

RE: Memory Stack or Heap
 
Static varibales are neither stored in stack nor in heap. Static varibales are stored in data segment.

Auto variables are stored in stack and dynamic allocated variables are stored in heap.
     

 

Back To Question