(27)
A.The taxi must have been waiting for us all this time.
B.Let's look for a taxi to go there immediately.
C.To avoid being late, we should have called for a taxi earlier.
D.The taxi will come as soon as we call for it.
第1题
以下程序的输出结果是_____。
include<iostream.h>
void fun()
{ static int a=0;
a+=2;
cout < < a < < " ";}
void main()
{ int cc;
for(cc=1;cc<4;cc++)
fun() ;
cout < < endl;}
第2题
以下程序的输出的结果是()。 #include<iostream.h> int x=3: void main() { void fun(); int i; for(i=1;i<x;i++) fun(); } void fun() { static int x=1; x*=x+1; cout<<x<<" "; }
A.3,3
B.2,2
C.2,6
D.2,5
第3题
下面程序输出结果是28,请将程序补充完整 #include <iostream.h> int a[8]={1,2,3,4,5,6,7}; void fun(int *pa,int n); int main() { int m=8; fun(a,m); cout< <a[7]> < <endl; return 0; } void fun(int *pa,int n) { for (int i="0;i<n-1;i++)" _________________>
第4题
以下程序运行后的输出结果是【 】。
include<iostream.h>
void fun(int x,int y)
{ x=x+y;y=x-y;x=x-y;
cout<< x << "," <<y << " ,";}
void main()
{ int x=2,y=3;fun(x,y);
cout<< x << "," << y << endl;}
第5题
下列程序运行后的输出结果是()。 #include<iostream.h> void fun(int,int,int*); void main() { int x,y,z; fun(5,6,&x); fun(7,x,&y); fun(x,y,&z); cout<<x<<","<<y<<","<<z<<endl; } void fun(int a,int b,int *c) { b+=a; *c=b-a; }
A.5,5,5
B.6,6,6
C.5,6,7
D.7,7,7
第6题
下列程序段的输出结果是 #include<iostream.h> void fun(int * X,int * y) { cout < < * X < < * y; * X=3; * y=4; } void main() { int x=1,y=2; fun(&y,&x); cout < < X < < y < < end1; }
A.2143
B.1212
C.1234
D.2112
第7题
有以下程序 #include<iostream.h> float fun(int x,int y) {return(x+y);} void main() {int a=2,b=5,c=8; cout<<fun((int)fun(a+c,b) ,a-c) ;}程序运行后的输出结果是
A.编译出错
B.9
C.21
D.9
第8题
有以下程序 #include<iostream.h> float fun(int x,int y) {return(x+y);} void main() {int a=2,b=5,c=8; cout<<fun((int)fun(a+c,b),a-c);} 程序运行后的输出结果是()。
A.编译出错
B.9
C.21
D.9
第9题
有以下程序 #include<iostream.h> float fun(int x,int y) {return(x+y);} void main() {int a=2,b=5,c=8; cout<<fun((int)fun(a+c,b),a-c);} 程序运行后的输出结果是()。
A.编译出错
B.9
C.21
D.9
第10题
以下程序的输出结果是()。 #include<iostream.h> int fun (char*s) { char *p=s; while (*p!='\0,) p++: return (p-s): } void main() { cout<<fun (" ABCDEF ")<<endl: }
A.3
B.6
C.8
D.0
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!