0 votes
380 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 331 views
asked May 14, 2022 in C program by CodeWithHarry (1.7k points)
0 votes
1 answer 278 views
0 votes
1 answer 310 views
0 votes
1 answer 356 views
0 votes
1 answer 363 views
0 votes
1 answer 437 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

648 users

...