Qualcomm Interview Question for Testing / Quality Assurances


Country: Israel
Interview Type: In-Person




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

printf() ---> printf() in the C library ---> write() in C library ---> write() system call in kernel.

Following the trail from printf down to the actual OS call(s) can be pretty messy.To understand what is going on at the lowest levels, you will need to analyze the source code in the kernel.

- Omkar February 04, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

For ques printf
Printf function calls the write function in the kernel

- bhanu teja,atk February 21, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

I wonder if the question is just how printf takes a format string, a list of args, constructs a string from it and then writes it to console. I atleast would like to know the answer to this though.

- tejaswi.yvs March 04, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

printf() call will lead to calling the write() function which thus writes the data to the output stream,stdout.

- Ankush Sharma April 15, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

printf() is implemented in libc (standard library) which use the "write" system call to out the string in stdout or stderr. Inside libc, printf implementation takes variable arguments, and formats the strings using format specifier "%" and finally output the string to stdout or stderr using "Write" system call.

- Raghu November 01, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 1 vote

Using the C header file cstdarg which allows you to define variable parameter functions.

- Miles Amblish January 31, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.


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