单项选择题
以下程序的输出结果是( )。
#include <stdio.h>
#include <string.h>
main()
char str[12]='s','t','r','i','n','g';
printf("%d\n",strlen(str) );
A.6
B.7
C.11
D.12
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有以下程序: #include <stdio.h> union pw int i; char ch[2]; a; main() a.ch[0]=13; a.ch[1]=0; printf( %d n ,a.i); 程序的输出结果是(注意:ch[0]在低字节,ch[1]在高字节)( )。
A.13
B.14
C.208
D.209
点击查看答案&解析
单项选择题
串的长度是( )。
A.串中不同字符的个数
B.串中不同字母的个数
C.串中所含字符的个数且字符个数大于0
D.串中所含字符的个数
点击查看答案&解析
相关试题
请选出以下程序的输出结果( )。 #incl...
已知字符0的ASCII码为十六进制的30,现...
有以下程序: #include <stdio.h> m...
请读程序: #include <stdio.h> fun...
读程序: #include <stdio.h> f(in...