Amazon Interview Question for Software Engineer / Developers






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

check this site
hacksoflife.blogspot.com/2007/02/c-objects-part-1-basic-object-memory.html

- swakri February 08, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Can any body answer this?

- Rid December 13, 2007 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

I don't have an exact answer to this but on the following link you might something similar.

en.allexperts.com/q/C-1040/memory-allocation-virtual-pointer.htm

- knr+stroustrup=goodjob February 08, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

C this link for C memory layout:

www.cse.ucsc.edu/classes/cmps012b/Spring97/Lecture06/sld003.htm

IN case of C++, Static, Heap, Stack
Static – Live for the duration of life of program
Heap – Designers discretion
Stack - Till in scope

- blackpepper February 25, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

I think there is no diff between memory layout of C and c++ its same , you will have stack , heap , static data , text segments .

memory layout and size of object depends of following variables.
- number of members
- number of methods
- is it derived from base class
- is there any virtual fucntion

- Anonymous June 15, 2009 | Flag Reply


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