c语言求字符串的长度并输出 C语言中用什么函数可以得到一个字符串的长度?
C语言中用什么函数可以得到一个字符串的长度?在C语言中,获取字符串长度的函数是:strlen(),例如:#include#includemain()](char*STR=“this is a test
C语言中用什么函数可以得到一个字符串的长度?
在C语言中,获取字符串长度的函数是:strlen(),例如:
#include
#include
main()](
char*STR=“this is a test MSG”
printf(%dn”,strlen(STR))
getch())