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 05:08:37 #4
 alokag   Member Since: June 2009    Total Comments: 5 

RE: Memory Stack or Heap
 
Fully agree with vivekbansal. Static variables (not initialized to value other than 0) are always stored in BSS else in "Data" of data segment.
     

 

Back To Question