Interview Question for Software Engineer / Developers






Comment hidden because of low score. Click to expand.
0
of 0 vote

Because the scope of auto variables is only in the block in which they are declared. As soon as the program exits from the block, the auto variables no longer exist.

- KT September 05, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Auto variables are not stored in heap because heap is for dynamic memory allocation, it is like an unorganised bunch of memory from which u can allocate any size of mememory. An auto variable is allocated memory before only so it is allocated systematically on the stack.

- cinderella September 19, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

where do you find a heap when you were running early during boot ?
you initialize the stack before you run C program, but you didnt intialize heap before you run C
therefore local var will have no choice but to be stored in stack

- Anonymous January 01, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Huh? You are utterly cluless, aren't you?

- Anonymous January 01, 2014 | Flag


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More