Qualcomm Interview Question for Software Engineer / Developers






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

You do not need to make any changes at all. The interviewer is expecting some smart answer, so be smart and tell this:
1. No code change
2. Use standard memory profiling tools to chek for memory leaks

and the interviewer will be hapy to know that answer.

- manoj August 25, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

I forgot to mention actually he said there are no memory profiling tools :)

- desi grad August 25, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

In this case, we can write our own version of new and delete operators and keep information about the memory allocated and deleted. at the end of program, we can check if any of the memory is still in hold and not deleted.

since we do have profiling tools, this is a waste question.

- Arun October 15, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Make use of Kernel Hooks !

- Pavan October 19, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

WHAT????
Dude are u brain dead???

- hell_raiser March 22, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

By using mtrace() and muntrace() functions. for this you need to set the MALLOC_TRACE environment variable to log file path.

- SIVA April 13, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

ok.... chk this
codeproject.com/KB/cpp/MemoryLeakDetectionIn_CPP.aspx

- Vishal July 20, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

prefix www to the link above

- Vishal July 20, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

you can use valgrind tool to find a memory leak, without changing the code

- HakunaMatata March 28, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 1 vote

lol!!!

- LLOLer August 26, 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