设有数组定义:chararray[]="China";则sizeof(array)的值为()
查看答案
设有数组定义:chararray[10]="China";则strlen(array)的值为()
A. 4
B. 5
C. 6
D. 10
有以下程序段,执行后x[6]的值为()charx[10]="ABCDEFGH",y[]="abc";strcpy(x,y);
A. F
B. a
C. G
D. \0
已知大写字母A的ASCII码值是65,小写字母a的ASCII码值是97,则字符常量'\101'是()
A. 字符A
B. 字符a
C. 字符e
D. 非法的常量
设有以下程序,运行时,从键盘敲入:01<回车>,程序执行结果为()#include#includeintmain(){chark;inti;for(i=1;i<3;i++){scanf("%c",&k);switch(k){case'0':printf("another\n");case'1':printf("number\n");}}return0;}
A. another
B. anothernumber
C. anothernumberanother
D. anothernumbernumber