网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
单选题
若有定义chara[]=newchar[5];则a.length的值为()
A
0
B
10
C
4
D
5
参考答案
参考解析
解析:
暂无解析
更多 “单选题若有定义chara[]=newchar[5];则a.length的值为()A 0B 10C 4D 5” 相关考题
考题
若有定义int a[9],+P=a;,则P+5表示( )。A.数组元素a[5]的值B.数组元素a[5]的地址SXB
若有定义int a[9],+P=a;,则P+5表示( )。A.数组元素a[5]的值B.数组元素a[5]的地址C.数组元素a[6]的地址D.数组元素a[0]的值加上5
考题
若有定义:char*st="how are you";,下列程序段中正确的是A.chara[11],*p;strcpy(p=a+1,st[4]);B.chara[11];strcpy(++a,st);C.chara[11];strcpy(a,st);D.chara[],*p;strcpy(p=a[1],st+2);
考题
若有定义:“inta=4,b=5;floatx=3.4,y=2.1;”,则下列表达式的值为( )。 A.5.5B.55
若有定义:“inta=4,b=5;floatx=3.4,y=2.1;”,则下列表达式的值为( )。A.5.5B.55C.5.500000D.55.00000
考题
若有定义“int a=5,b=7;”,则表达式a%-(b%2) 运算后,a的值为( )。A.0B.1C.11S
若有定义“int a=5,b=7;”,则表达式a%-(b%2) 运算后,a的值为( )。A.0B.1C.11D.3
考题
若有定义:chara[]="abcdef";charb[]="xyz";则以下程序段运行后屏幕输出为() strcpy(a,b); printf("%c",a[2]);A、cB、zC、/0D、d
考题
以下关于数组的描述中,正确的有()A、有定义chara[3];则定义了a[1]、a[2]、a[3]三个数组元素B、构成字符数组的各个元素必须是字符类型的数据C、若有定义chara[]="hello";,则数组a的长度为6D、设有数组定义chararray[]="China";则数组array所占的空间为5个字节
考题
单选题若有定义:chara[]="abcdef";charb[]="xyz";则以下程序段运行后屏幕输出为() strcpy(a,b); printf("%c",a[2]);A
cB
zC
/0D
d
考题
单选题设有整型数组的定义inta[]=newint[8];则a.length的值为下列哪项()?A
8B
9C
7D
6
热门标签
最新试卷