Company Name Starts with ...
#  A  B  C  D  E   F  G  H  I  J   K  L  M  N  O   P  Q  R  S  T   U  V  W  X  Y  Z

Qualcomm C Interview Questions
Questions Answers Views Company eMail

Write an implementation of “float stringToFloat(char *str).” The code should be simple, and not require more than the basic operators (if, for, math operators, etc.). • Assumptions • Don’t worry about overflow or underflow • Stop at the 1st invalid character and return the number you have converted till then, if the 1st character is invalid return 0 • Don’t worry about exponential (e.g. 1e10), instead you should treat ‘e’ as an invalid character • Write it like real code, e.g. do error checking • Go though the string only once • Examples • “1.23” should return 1.23 • “1a” should return 1 • “a”should return 0

6 8765

1.find the second maximum in an array? 2.how do you create hash table in c? 3.what is hash collision

9 14531

1.write a program to merge the arrays 2.write efficient code for extracting unique elements from a sorted list of array?

3 9813

Whats wrong with the following function char *string() { char *text[20]; strcpy(text,"Hello world"); return text; }

3 6818

Binary tree traversing

1 5456

Toggle nth bit in a given integer - num

5 17276

What is the output of following program ? int main() { int x = 5; printf("%d %d %d\n", x, x << 2, x >> 2); }

5 20954

You have an int array with n elements and a structure with three int members. ie struct No { unsigned int no1; unsigned int no2; unsigned int no3; }; Point1.Lets say 1 byte in the array element is represented like this - 1st 3 bits from LSB is one number, next 2 bits are 2nd no and last 3 bits are 3rd no. Now write a function, struct No* ExtractNos(unsigned int *, int count) which extracts each byte from array and converts LSByte in the order mentioned in point1.and save it the structure no1, no2, no3. in the function struct No* ExtractNos(unsigned int *, int count), first parameter points to the base address of array and second parameter says the no of elements in the array. For example: if your array LSB is Hex F7 then result no1 = 7, no2 = 2, no3 = 7. In the same way convert all the elements from the array and save the result in array of structure.

2 4592

Write a C program to perform some of the operation which can be performed using Single linked list

1 7438

Post New Qualcomm C Interview Questions




Un-Answered Questions

How to generate test cases for 'replace a string' method?

909


What are the advantages of java beam?

519


Explain packages.

655


What are the main features of ms word 2007?

312


Describe in brief RequestDespatcher?

590






Can you perform under pressure

884


What is the cell theory?

513


How to write business scripts using object repository with different scenarios

1380


Can multiple SharePoint installs point to the same DB?

480


What is GiL in python programming language?

501


Is the COM architecture same as .Net architecture? What is the difference between them (if at all there is)?

1569


what are the ways to find ip address of any domain name say google.com in linux operating system?

452


What is mean by encoding?

622


What are gain margin and phase margin?

832


What do the ik08 tcodes in sap- pm mean?

551