What can we learn about Sue?A.She is Mrs. Johnson's sister.B.She is the person to look aft
What can we learn about Sue?
A.She is Mrs. Johnson's sister.
B.She is the person to look after their children.
C.She is the speakers' guest.
What can we learn about Sue?
A.She is Mrs. Johnson's sister.
B.She is the person to look after their children.
C.She is the speakers' guest.
第1题
下面程序的运行结果是______。
include<iostream.h>
void fun(int &a,int b=3)
{
static int i=2;
a=a+b+i;
i=i+a;
}
void main()
{
int x=5,y=2;
fun(x,y);
cout<<x<<",";
fun(x);
cout<<x<<endl;
}
第2题
下面程序的运行结果是 #include < iostream.h > int fun (int a[ ],int n) { int result=1; for(int i=1;i<n;i++) result=result*a[i]; return result; } void main() { int a[3]={3,4,5}; cout << fun(a,
A.12
B.15
C.20
D.60
第3题
下面程序的运行结果是()。 #include<iostream.h> int fun(int a[],int n) { int resuh=1; for(inl i=1;i<11;1‘++) result=result * a[i]; retum result; } void main int a[3]={3,4,5}: cout<<fun(a,3)<<endl: }
A.12
B.15
C.20
D.60
第4题
下面程序的运行结果是()。 #include<iostream.h> void fun(int *a,int *B. { int x=*a: *a=*b;*b=X; cout<<*a<<*b<<””: void main { int X=1,Y=2; fun(&x,&y); cout<<x<<Y<<endl; }
A.12 12
B.12 21
C.21 12
D.21 21
第5题
下面程序的运行结果是 #include<iostream.h> int fun(inta[],int n) { int result=1; for(int i=1:i<n;i++) result=result*a[i]; remm result; } void main() { int a[3]={3,4,5}; cout <<fun(a,3) <<end1; }
A.12
B.15
C.20
D.60
第6题
下面程序的运行结果是 #include<iostream.h> void fun(int * a,int * b) { int x= * a; * a = * b; * b=x; cout <<*a<< *b<<""; } void main(0 { int x =1,y =2; fun(&x,&y); cout<< x << y <<end1; }
A.12 12
B.12 21
C.21 12
D.21 21
第7题
下面程序的运行结果是()。 #include<iostream.h> int x=5; int fun(int a) { int c; C=X*a; retum c; } void main() { int x=3,a=4; x=x+fun(a); cout<<"x"”<<X<<endl; }
A.x=15
B.x=17
C.x=23
D.x=25
第8题
下面程序的运行结果是()。 #include<iostream.h> intfun(inta[],int n) { int result=1; for(int i=“i<n;i++) result’resultxa[i]; return result; } void main() { inta[3]={3,4,5}; cout<<fun(a,3)<<endl; }
A.12
B.15
C.20
D.60
第9题
阅读下面程序:
include <iostream.h>
int fun(int a, int b )
{
int c;
c=a*b;
return c;
}
void main()
{
int a=3,b=5,c=4,x=0;
x=fun(fun(a, b),c);
cout<<x<<end1;
}
其运行结果是【 】。
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!