String to integer | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

String to integer

How can we convert string to integer?

17th May 2018, 6:11 PM
yalda_student
yalda_student - avatar
3 Answers
+ 6
itoa () function in C language converts int data type to string data type. Syntax for this function is given below. https://fresh2refresh.com/c-programming/c-type-casting/c-itoa-function/
17th May 2018, 6:14 PM
Scooby
Scooby - avatar
+ 5
Been added last week, you may check this lesson: https://www.sololearn.com/learn/8146/?ref=app
17th May 2018, 6:20 PM
Dev
Dev - avatar
+ 2
atoi convert from string to int (reverse of itoa)
21st May 2018, 7:37 AM
Baptiste E. Prunier
Baptiste E. Prunier - avatar