0 votes
409 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 352 views
asked May 14, 2022 in C program by CodeWithHarry (1.7k points)
0 votes
1 answer 299 views
0 votes
1 answer 342 views
0 votes
1 answer 376 views
0 votes
1 answer 392 views
0 votes
1 answer 473 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

MrRam Earned a badge
Ritesh Maurya Earned a badge
Ritesh Maurya Earned a badge

5.7k questions

5.1k answers

108 comments

648 users

...