主页
C 语言
C 实际示例
demo_strings_reallife2
运行 ❯
×
更改方向
保存代码
更改主题
#include <stdio.h> #include <string.h> int main() { char word[] = "Computer"; printf("The word '%s' has %d characters in it.", word, strlen(word)); return 0; }
单词“Computer”有8个字符。