Question
Look at the following statements:char str[] = "237.89";double value;Write a statement that converts the string in str to a double and stores the result in value.
Step 1
You need to include `<stdlib.h>` for the `atof` function, which converts a string to a double. Show more…
Show all steps
Your feedback will help us improve your experience
Watch the video solution with this free unlock.
EMAIL
PASSWORD