What function is convert a string to integer | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What function is convert a string to integer

C

4th Feb 2019, 12:54 PM
notesforgeeks.com
notesforgeeks.com - avatar
3 Answers
+ 7
char s[] = "11"; int num = atoi(s); but it is not recommended as not handling errors
4th Feb 2019, 1:41 PM
Hubert Dudek
Hubert Dudek - avatar
4th Feb 2019, 1:41 PM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 1
Thank you
4th Feb 2019, 1:42 PM
notesforgeeks.com
notesforgeeks.com - avatar