Skip to content
CSCosmos
C // COSMOS
memory workbench
Overview
Learn
Lab
Problems
Toggle theme
Arena
Miscellaneous Library Functions
← 34
36 →
DRILL 35
Easy
atoi Stops at Non-Digits
What does atoi("12abc") return?
drill.c
C
Copy
printf("%d\n", atoi("12abc"));
Choose an answer
A
12
B
0
C
Error
D
abc
Show hint