What function do you use to convert an string of ASCII characters to a double? O strcpy() O atoi() O atof() O strcat()
What function do you use to convert an string of ASCII characters to a double? O strcpy() O atoi() O atof() O strcat()
Chapter7: Input/output Technology
Section: Chapter Questions
Problem 25VE
Related questions
Question
Expert Solution
Step 1:-
The question wants to know what fun tion do we use to convert a string of ASCII characters to double.
The provided options are :-
- strcpy()
- atoi()
- atof()
- strcat()
- Among the provided option , we have strcpy() which is used to copy one string to other. So, this option is incorrect.
- Among the provided option , we have atoi() which is used to convert a string of ASCII characters to integer. So, this option is incorrect.
- Among the provided options provided option , we have strcat() which is used to concatenate or add one string to other. So, this option is incorrect.
- Among the provided option , we have atof() which is used to convert a string of ASCII characters to double. So, this option is correct.
Step by step
Solved in 2 steps
Recommended textbooks for you
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning