Why is extern used in c?
No Answer is Posted For this Question
Be the First to Post Answer
what is c programming?
What does the format %10.2 mean when included in a printf statement?
What is meaning of tree
what is the return type of printf
What is the main differences between C and Embedded C?
explain what is an endless loop?
In C language what is a 'dangling pointer'?
Why array is used in c?
How can I manipulate individual bits?
What is the real difference between arrays and pointers?
27 Answers Hexaware, Logic Pro, TCS,
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
wt is diference between int and int pointer as same as float and float pointer and char and char pointer