GeekInterview.com
Series: Subject: Topic:
Question: 18 of 35

Automatic variables are destroyed after function ends because

A. Stored in swap
B. Stored in stack and popped out after function returns
C. Stored in data area
D. Stored in disk

Asked by: Interview Candidate | Asked on: Aug 20th, 2005
Showing Answers 1 - 2 of 2 Answers
V Shashi Bhushan

Answered On : Aug 20th, 2005

Answer is : B 
 
Auto variables are Stored in Stack and poped out after the function returns

  
Login to rate this answer.
rakesh

Answered On : Aug 5th, 2006

automatic variables (i.e local variables) are stored in stack area for a C pgm.

so the ans is B.

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.