0 votes
120 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 94 views
asked May 14, 2022 in C program by CodeWithHarry (1.7k points)
0 votes
1 answer 103 views
0 votes
1 answer 118 views
0 votes
1 answer 129 views
0 votes
1 answer 157 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

537 users

...