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
The first field of an Internet Control Message Protocol (ICMP) packet specifies the message type. Which choices represent messag
Scorpion4ik [409]

Answer: destination unreachable

time exceeded

Explanation:

You didn't give the options to the question but based on a similar question there I got online, the answer will be destination unreachable and time exceeded.

The Internet Control Message Protocol (ICMP) refers to a protocol that is used in the communication of problems with regards to the transmission of data. Based on the information given, the choices that represent message type examples are:

• destination unreachable

• time exceeded

4 0
3 years ago
A for loop
MAVERICK [17]

Answer:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Explanation:

i feel that i remmeber it from a test

8 0
3 years ago
Which elements of a myth appear in this story from early babylon
g100num [7]
-a setting that may be fake
- Supernatural being/character
- Conflict/ the plot of the story
7 0
3 years ago
Which of the following protocols is used by an email client to retrieve messages from an email server, giving users the option t
Alexxandr [17]

IMAP  protocols is used by an email client to retrieve messages from an email server, giving users the option to keep mail messages on the server.

<h3>What is IMAP on one's email account?</h3>

IMAP is a term that connote Internet Message Access Protocol. IMAP helps one to be able to access the same inbox from a lot of devices.

Hence, IMAP  protocols is used by an email client to retrieve messages from an email server, giving users the option to keep mail messages on the server.

Learn more about email server from

brainly.com/question/15710969

#SPJ1

5 0
3 years ago
_is necessary for the health growth of bones and teeth fill ups​
alekssr [168]

Answer:

Calcium

Explanation:

Calcium is a necessity and makes your bones stronger. It typically comes in milk.

7 0
4 years ago
Read 2 more answers
Other questions:
  • Ron frequently uses the word improving in his blog. He types the word imp and the word improving appears. Which feature of his s
    6·2 answers
  • _____ creates a border or space that separates information.
    14·1 answer
  • -How long does a copyright last?
    6·1 answer
  • When the Hyper-V role is added to a Windows Server 2016 server, the hypervisor creates the individual environments, each of whic
    5·1 answer
  • One concern some users have about storing data or accessing applications in the cloud is .
    10·1 answer
  • In video game development, the person who oversees and directs the entire design team and is the key vision keeper is
    13·1 answer
  • Which of these is an example of collective voice?
    8·2 answers
  • What is a narrative?
    7·2 answers
  • The area of ai that investigates methods of facilitating communication between computers and people is?.
    5·1 answer
  • You are given the following design parameters, fill in the table: All memory addresses are 32-bit long; A 64Kbyte (2^16 byte) ca
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!