主页
C 语言
C stdlib atoi() 函数
demo_ref_stdlib_atoi2
运行 ❯
×
更改方向
保存代码
更改主题
#include
#include
int main() { char str[] = "Today's temperature is 24 degrees"; int amount = atoi(&str[23]); printf("%d", amount); return 0; }
24