题目内容
(请给出正确答案)
[主观题]
设有以下程序段int x=0,s=0;while(!x!=0)s+=++x;printf("%d",s);则A.运行程序段后输出0B.运行程
设有以下程序段 int x=0,s=0; while(!x!=0)s+=++x; printf("%d",s); 则
A.运行程序段后输出0
B.运行程序段后输出1
C.程序段中的控制表达式是非法的
D.程序段执行无限次
查看答案
如果结果不匹配,请 联系老师 获取答案
设有以下程序段 int x=0,s=0; while(!x!=0)s+=++x; printf("%d",s); 则
A.运行程序段后输出0
B.运行程序段后输出1
C.程序段中的控制表达式是非法的
D.程序段执行无限次
int x=0,s=0;
while(!x!=0)s+=++x;
printf("%d",s);
则
A.运行程序段后输出0
B.运行程序段后输出1
C.程序段中的控制表达式是非法的
D.程序段执行无限次
A.a
B.\0
C.e
D.f
A.********
B.****
C.**
D.*
a$="BeijingShanghai"
b$=Mid(a$,InStr(a$,"g")+1)
执行上面的程序段后,变量b$的值为______。
A.5.175000
B.5.169000
C.5.170000
D.5.168