Knowee
Questions
Features
Study Tools

In C++, atof () function is used to convert ________.

Question

In C++, atof () function is used to convert ________.

🧐 Not the exact question you are looking for?Go ask a question

Solution

In C++, atof() function is used to convert a string to a floating point number.

Similar Questions

The following function is an imitation of the atof() function given in KnR  in section 4.2Complete it. Do not use space in any answer.double atof(char *str) {    double whole = 0.0, power = Answer ;    int sign;    while(Answer && (*str == ' ' || *str == '\t'))        str++;    sign = (*str == '-' ? -1 : Answer );    (*str == '-' || *str == '+') ? Answer : NULL;        while(*str && (*str >= Answer && *str <= Answer ))        whole = whole * Answer + (Answer - Answer );    *str == Answer ? str++: NULL;    while(*str && (*str >= Answer && *str <= Answer )) {        whole = Answer * 10.0 + (Answer - '0');        power *= 10.0;    }       return sign * whole / power;}

Which one of the following operators is a unary operator in c language? ans. sizeof() & && <<

Suppose that in a C program snippet, followings statements are used.i) sizeof(int);ii) sizeof(int*);iii) sizeof(int**);

at will be the output of the following code?1234567#include <stdio.h> int main() { for(int k = 0; k < 5; k++) { printf("%d ", k * k (k + k)); } return 0; }Marks : 1Negative Marks : 0Answer here0 1 4 9 160 2 4 6 81 4 9 16 25Compile time error

What is the output of the following C Program?

1/3

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.