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