1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Black_prince [1.1K]
4 years ago
15

Which C99 function can be used to convert a string to a double?

Computers and Technology
1 answer:
nordsb [41]4 years ago
5 0

Answer:

atof

Explanation:

atof function is used to convert a string to a double.

It takes a single parameter of type const char * and returns a double value.

The function signature is: double atof (const char* str);

In order to use this function in the code, you need to include the header file <stdlib.h>

For example:

#include <stdio.h>

#include <stdlib.h>  

int main()

{

   char str[5] = "0.01";

   double d = atof(str);

   printf("Value = %f\n", d);

   return 0;

}

You might be interested in
Which type of bank account typically offers no iterest?
SCORPION-xisa [38]
Money market?? i think anyway.
8 0
3 years ago
Read 2 more answers
I need help with a question on a computer science test.
MA_775_DIABLO [31]

Answer:

To store decimal values

Explanation:

Analyzing the given options.

(a)

Decimal values are digits and are to be treated as such. So, storing them as strings mean that they are no longer decimal values.

(b), (c) & (d)

List of colors, words and values that can't be used for calculations are all string values.

Take a for instance.

List of colors: "Red", "Yellow", "Blue",...

Words, "I", "am", "a", "boy"

Values that can't be used for calculations are non numerical data and as such, some of them could be strings.

Hence:

Option (a) answers the question

8 0
3 years ago
Question #1
Evgen [1.6K]

Answer:

Pseudocode and flowchart.

Explanation:

I just got it correct.

8 0
3 years ago
Functions of operating systems​
Jobisdone [24]

Answer:

The functions of operating system are:

Explanation:

It protects the user to create,copy,delete,move& rename files & folders.

It protects the stored information from unauthorized users & denies them access to data.

It manages the storage and retrieval of data from disks.

It manages the input to and output form of computer system.

7 0
3 years ago
Technician A says the job of cooling system is to warn up the engine quickly. Technician B says the job of the cooling system is
alexira [117]

C: Both

functions of cooling system is removing excess heat from the engine, maintaining the engine operating temperature and, bringing the engine up to the right operating temperature as quickly as possible.

6 0
3 years ago
Other questions:
  • A musical compact disc is an example of
    13·1 answer
  • An isotope of an element has:
    11·2 answers
  • What is the single most important component of a computer? Central Processing Unit DIP Motherboard Chipset
    8·1 answer
  • You are given a list of n positive integers a1, a2, . . . an and a positive integer t. Use dynamic programming to design an algo
    10·1 answer
  • In what year did alienware introduce alienfx lighting zones into their pc's?
    10·1 answer
  • When was kale discovered?
    9·1 answer
  • Write a program whose inputs are three integers, and whose output is the smallest of the three values. Ex: If the input is: 7 15
    5·1 answer
  • Find the median and mean of the data set below: 29 17 40 12 29
    6·1 answer
  • What is cloud based LinkedIn Automation?
    12·2 answers
  • In this paper https://arxiv.org/pdf/2008.10150.pdf, I'm having a hard time understanding how the assignment in the picture is de
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!