>
其他
>
设有变量说明:char a[6],*p=a;下面表达中,正确的赋值语句是
A.*p="Hello"
B.a="Hello";
C.p="Hello";
D.a[6]= "Hello";
人气:296 ℃ 时间:2020-03-27 03:30:04
解答
CC表示指针指向字符串"Hello",B项中a表示字符串首字符地址,故不对,所以A也不对
如用a[6]表示可以写成 a[6]= {"Hello"};D错.
推荐
C语言:设有说明语句:char a='\72';则变量a()
若有说明语句:char c = '\72';则变量c( ).
设有变量定义语句char a; 则下面的赋值语句中 ( ) 是正确的.A.a=’&’ B.a=”&” C.a=’16’ D.a=’ ’
Worth it or not,I have the final say
我奇怪地问他,爹为什么要烧掉呢?与文中相照应的句子
he left the office()once,as soon as he heard ()the accident.括号里填什么?
猜你喜欢
就纬度分布来看,世界上降水量最丰富的地区在
数学解放程应用题
写一件有关规则的事 (作文)400字以上
我的舞台作文
我需要什么的翻译是when i need吗.
已知函数f(x)是定义在(-3,3)上的减函数,如果f(2a-3)>f(a+1),则a的范围为?
She fell asleep at last,but in no time at all the pain in her back _________ her again,sharp and instant.
在400摄氏度左右,有催化剂存在的条件下,用氨气可将有毒气体NO还原为N2和H2O,写
© 2024 79432.Com All Rights Reserved.
电脑版
|
手机版