What function do you use to convert an string of ASCII characters to a double? O strcpy() O atoi() O atof() O strcat()

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter7: Input/output Technology
Section: Chapter Questions
Problem 25VE
icon
Related questions
Question
What function do you use to convert an string of ASCII characters to a double?
strcpy()
atoi()
atof()
strcat()
Transcribed Image Text:What function do you use to convert an string of ASCII characters to a double? strcpy() atoi() atof() strcat()
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.

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning