输入一个字符串,输出其长度
hello, world
12
我们不建议你阅读下面的内容,除非遇到问题
关于编译错误大部分字符串相关处理函数位于 string.h 中。请确保你的程序包含该头文件。 关于答案多一gets fgets 等函数会将换行符 \n 读入,造成字符串长度比其本身多一,请妥善处理。
string.h
gets
fgets
\n
By signing up a ArchDevil C Training Camp universal account, you can submit code and join discussions in all online judging services provided by us.
Using your ArchDevil C Training Camp universal account