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 110121.find the second maximum in an array? 2.how do you create hash table in c? 3.what is hash collision
9 174191.write a program to merge the arrays 2.write efficient code for extracting unique elements from a sorted list of array?
3 11285Whats wrong with the following function char *string() { char *text[20]; strcpy(text,"Hello world"); return text; }
3 8418What is the output of following program ? int main() { int x = 5; printf("%d %d %d\n", x, x << 2, x >> 2); }
5 23178You 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 5694Write a C program to perform some of the operation which can be performed using Single linked list
1 8158Post New Qualcomm C Interview Questions
What is dbms introduction?
What is architecture neutral in java?
i have 2 table table one 4 columns respective values a1 7,a2 6,a3 8 ,a4 12 & table two 4 colums respective values a1 7,a2 6,a3 8,a4 15.if table one & table two 3 colums same then 4th column values 1)Qes diff >5 then print 5 * diff value 2)Que diff <5 print 5
What is the point-to-point model in jms?
Is GUI supports in VT100 Server?
Can I delete microsoft silverlight?
Compare dataset and fileset?
What is 4nf in normalization form?
What is the purpose of formatting?
how to find the co-efficient of variation for the following data x: 42 45 35 38 50 55 48 50 36 40 y: 15 10 18 22 25 18 17 20 18 12
Why do we need to use css?
How can you change the name of any existing table by using the sql statement?
What is laravel homestead?
How to Use Form Wizard to Quickly Create a Delphi Form?
Can we define apex sharing reason for standard object? : salesforce sharing and security