Question: atof function is used for?
Answer: In the C Programming Language, the atof function converts a string to a floating-point number (double). The atof function skips all white-space characters at the beginning of the string, converts the subsequent characters as part of the number, and then stops when it encounters the first character that isn't a number.