0 votes
426 views
in C program by (1.7k points)
edited

How do you convert strings to numbers in C?

1 Answer

0 votes
by (1.7k points)
selected by
 
Best answer
You can write you own functions to do string to number conversions, or instead use C’s built in functions. You can use atof to convert to a floating point value, atoi to convert to an integer value, and atol to convert to a long integer value.

Related questions

0 votes
1 answer 366 views
asked May 14, 2022 in C program by CodeWithHarry (1.7k points)
0 votes
1 answer 317 views
0 votes
1 answer 351 views
0 votes
1 answer 403 views
0 votes
1 answer 412 views
0 votes
1 answer 496 views

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

Recent Badges

Doubtly Earned a badge
Doubtly Earned a badge
Doubtly Earned a badge

5.7k questions

5.1k answers

108 comments

650 users

...