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

Which of the given function converts the string pointed to, by the argument str to a floating-point number? Correct Answer atof(const char *str)

The atof function converts the initial portion of the string pointed to by str to double representation. Except for the behavior on the error, it is equivalent to strtod (nptr, (char **)NULL).

Related Questions

atol(const char *str) Converts the string pointed to, by the argument str.
Comment on the output of the following C code.
#include int main(){ char *str = "This" //Line 1 char *ptr = "Program\n"; //Line 2 str = ptr; //Line 3 printf("%s, %s\n", str, ptr); //Line 4}
In Java, which one will be used for comparing whether the two string object str 1 and str? are same