0 votes
134 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 106 views
asked May 14, 2022 in C program by CodeWithHarry (1.7k points)
0 votes
1 answer 100 views
0 votes
1 answer 121 views
0 votes
1 answer 130 views
0 votes
1 answer 143 views
0 votes
1 answer 172 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!

5.7k questions

5.1k answers

108 comments

557 users

...