Qualcomm Interview Question for Software Engineer / Developers






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

sizeof(array)/sizeof(array[0])

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

Yes, that is correct.
len=sizeof(array)/sizeof(array[0])

- Aats! December 16, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Or you can exploit the fact that size of array is stored at (array -1)............Thats how compiler come to know the size of array when it has to delete memory........

- Kunal Gaind December 24, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

This particular post made me laugh.

This whole thread is crazy. It is filed under Algorithm!, and the language is not specified.

None of you get the job. At least find out which language is being talked about...

- saale chootiye December 24, 2009 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

what languages have macros other than c?

- Anonymous January 25, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

according to the fact stated by u:
array-1 store the size of array
printf("%d",*(array-1));

But it's not displaying the size

Plzz help!!

- techdebugger.zg September 14, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

#define size(a) (sizeof(a)/sizeof(a[0])

- Anonymous December 24, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

great

- odieodieodie January 04, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

#define SIZE_ARRAY(a) sizeof(a)/sizeof(int);

- king kong May 25, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

will this work if we allocate memory for 10 elements and stored only 5 elements ?

- Krishna December 16, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

chution kuch bhi mila aur lage type karane, mujhe shurm aati hai in what type of factory is making such engineers.Maderchod saale

- Anonymous October 08, 2013 | 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