Vidyalelo
C Programming · Q184

Standard Library Functions

Programming · C Programming · question 184

Q184

Which of the given function converts the string pointed to, by the argument str to a floating-point number?

A.
atof(const char *str)
Answer
B.
strtod(const char *str, char **endptr)
C.
atoi(const char *str)
D.
atol(const char *str)

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board