答案查看网,轻松搜题/搜资源
登录
×
登录账号
记住密码
立即注册
忘记密码
×
注册
使用微信扫描二维码,获取账号密码后免费查看答案
前往登录
忘记密码
×
忘记密码
使用微信扫描下方二维码,即可找回您的账号密码
前往登录
立即注册
搜题/搜资源
【单选题】【消耗次数:1】
程序段char a[ ]=“English”; char *p=a; int n=0; while( *p!=‘\0’){ n++; p++;} 结果中,n的值是( )。
①
A. 6
②
B.8
③
C.5
④
D.7
参考答案:
复制
纠错
相关题目
【单选题】
程序段char a[ ]=“English”; char *p=a; int n=0;while( *p!=‘\0’){ n++; P++;}结果中,P指向( )。
①
A. 字符h
②
B.a
③
C. 字符串的结束符
④
D.7
查看完整题目与答案
【简答题】
int a[10]={0,1,2,3,4,5,6,7,8,9};int *p;int i;p=a;printf(%d\n,*p++);printf(%d\n,*++p);程序输出结果为[填空1]和[填空2]。
查看完整题目与答案
【简答题】
#includestdio.hint main(){int a[10]={0,1,2,3,4,5,6,7,8,9};int *p;p=a;printf(%d\n,*p);p++;printf(%d\n,*p);}程序输出结果为[填空1]和[填空2]。
查看完整题目与答案
【单选题】
下述程序的运行结果( )。 #includevoid main() { int p,a=0; if(p=a!=0)printf(%d\n else printf(%d\n,p+2); }
①
1
②
2
③
3
④
5
查看完整题目与答案
【单选题】
以下函数的返回结果是( )。 int function(char *x) { char *p=x; while(*p++); return(p-x-1); }
①
求字符串的长度B.将字符串x连接到字符串p后面
②
将字符串x复制到字符串p中
③
将字符串x反向存放
查看完整题目与答案
【单选题】
以下函数的返回结果是( )。 int function(char *x) { char *p=x; while(*p++); return(p-x-1); }
①
求字符串的长度B.将字符串x连接到字符串p后面
②
将字符串x复制到字符串p中
③
将字符串x反向存放
查看完整题目与答案
【单选题】
以下函数的返回结果是() int function(char *x) { char *p=x; while(*p++); return(p-x-1); }
①
求字符串的长度
②
将字符串x连接到字符串p后面
③
将字符串x复制到字符串p中
④
将字符串x反向存放
查看完整题目与答案
【单选题】
以下函数的返回结果是(????) int function(char *x) { char *p=x; while(*p++); return(p-x-1); }
①
求字符串的长度
②
将字符串x连接到字符串p后面
③
将字符串x复制到字符串p中
④
将字符串x反向存放
查看完整题目与答案
【单选题】
设有如下函数定义 int f(char *s) { char *p=s; while(*p!=’\0’) p++; return(p-s); } 在主函数中用coutf(“good”)调用上述函数, 则输出结果为( )
①
3
②
4
③
5
④
6
查看完整题目与答案
【单选题】
设有如下函数定义 int f(char *s) { char *p=s; while(*p!=’\0’) p++; return(p-s); } 在主函数中用coutf(“good”)调用上述函数, 则输出结果为( )。
①
3
②
4
③
5
④
6
查看完整题目与答案
随机题目
【单选题】
A: [填空]? B: This is Franco Rossi speaking.
①
Who are you
②
Who are you calling
③
Who is that
④
What do you want to say
查看完整题目与答案
【单选题】
A: Where there is a will, there is a way. B: [填空].
①
Thats right
②
Thats all right
③
All right
④
Not at all
查看完整题目与答案
【单选题】
A: Your newly bought bike is very fashionable. B: [填空].
①
Its very kind of you to say so
②
Yes, very good
③
No, not good
④
Really
查看完整题目与答案
【单选题】
A: Will you please give the note to him? B: [填空].
①
No,please not
②
Sorry,I dont
③
Certainly,Ill give it to him
④
Yes,please do
查看完整题目与答案
【单选题】
A: Hello, may I talk to the headmaster now? B: [填空].
①
Sorry, he is busy at the moment
②
No, you cant
③
Sorry, you cant
④
I dont know
查看完整题目与答案
【单选题】
A: [填空], but is this the way to the library? B: Yes, it is.
①
Im sorry
②
Pardon
③
Excuse me
④
Hello
查看完整题目与答案
【单选题】
A: What about going for a walk? B: [填空].
①
Thats all right
②
Walking is good to you
③
Why not? A good idea
④
Its up to you
查看完整题目与答案
【单选题】
A: Hi, Mark, Im glad you could come. B: [填空] A: No, you are right on time.
①
Its my great honor, thanks.
②
You are welcome. Am I the first?
③
Thanks. Do you have the time?
④
I hope Im not too late.
查看完整题目与答案
【单选题】
A: I was born in Hefei,but I studied in Beijing. [填空]? B: I was born in Beijing,but studied in Hefei.
①
What do you do
②
And you
③
Where were you
④
Do you
查看完整题目与答案
【单选题】
A: Id rather have some tea, if you dont mind. B: [填空].
①
Thank you very much
②
Yes, I like so
③
Of course not, anything you want
④
No, its nothing
查看完整题目与答案