单项选择题

以下程序的输出结果是 ( ) #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
<上一题 目录 下一题>
热门 试题

单项选择题
打开一个已经存在的非空文本文件,若文件名为stu,则正确的打开语句为 ( )
A.FILE*fp; fp=fopen("sttxt","r")
B.FILE * fp; fp=fopen(sttxt,
C.FILE *fp; fP=fopen("stu,txt","wb")
D.FILE *fp; fp=fopen("sttxt",w
单项选择题
设有语句char a=' 72';,则变量a ( )
A.包含1个字符
B.包含2个字符
C.包含3个字符
D.说明不合法
相关试题
  • 下列程序 void func1(int i); void...
  • 在数据库设计中,将E-R图转换成关系数据模...
  • 在下列语句中,正确的是 ( )
  • 设a,b均为float型变量,则以下非法的赋值...
  • 以下叙述中正确的是 ( )