WRITE A PROGRAM TO PRINT THE FOLLOWING OUTPUTS USING FOR LOOPS. A) * B) ***** *** * * ***** * * *****
2 15670Write 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 10646a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f
TCS,
2108How can I prevent other programmers from violating encapsulation by seeing the private parts of my class?
1 3781
What is quick sort in c?
Can you apply link and association interchangeably?
what is a function method?give example?
What is difference between structure and union in c?
How can I do graphics in c?
Explain how can you be sure that a program follows the ansi c standard?
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
Explain goto?
Which built-in library function can be used to match a patter from the string?
Where local variables are stored in c?
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.
Is this program statement valid? INT = 10.50;
How can I write functions that take a variable number of arguments?
What is sorting in c plus plus?
What is action and transformation in spark?