题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-10-21 14:00:27

[单项选择]下列程序执行后的输出结果是 void funcl(int i); void func2(int i); char st[]="hello,frlend!"; void funcl(int i) { cout<<st[i]; if(i<3){i+=2;func2(i);} } void func2(int i) { cout<<st[i]; if(i<3){i+=2;funcl(i);} } main( ) { int i=0; furicl(i); cout<<endl;}
A. hello
B. hel
C. hlo
D. hlm

更多"下列程序执行后的输出结果是 void funcl(int i); "的相关试题:

[单项选择]下列程序执行后的输出结果是
void funcl(int i);
void func2(int i);
char st[]="hello,friend!";
void fund(int i)
cout<<st[i];
if(i<3)i+=2;func2(i);

void func2(int i)
cout<<st[i];
if(i<3)i+=2;funcl(i);

main( )
int i=0;fund(i);cout<<endl;
A. A ) hello
B. hel
C. hlo
D. hlm
[单项选择]下列程序执行后的输出结果是( )。
void funcl(int i);
void func2(int i);
char st[]="hello,friend!";
void funcl(int i)
printf("%C",st[i]);
if(i<3)
i+=2;func2(i); )

void func2(int i)
printf("%c",st[i]);
if(i<3)
i+=2;func1(i);

main( )
int i=0;funcl(i);printf("/n"); )
A. hlm
B. hlo
C. hello
D. he1
[单项选择]下列程序执行后的输出结果是( )。
void func1 (int i);
void func2(int i);
char st[]="hello,friend!";
void func1 (int i)
printf("%c",st[i]);
  if(i<3)i+=2;func2(i);

void func2(int i)
printf("%c",st[i]);
if(i<3)i+=2;func1(i);

main( )
int i=0;func1(i);printf("/n");
A. hello
B. hel
C. hol
D. hlm
[单项选择]下列程序执行后的输出结果是( )。
void funcl(int i);
void func2(int i);
char st[]="hello,friend!”;
void funcl(int i)
printf("%c",st[i]);
if(i<3)i+=2;func2(i);

void func2(int i)
printf("%c",st[i]);
if(i<3)i+=2;funcl(i);

main( )
int i=0;funcl(i);printf("/n");
A. hello
B. hel
C. hol
D. hlm
[填空题]有以下程序,程序执行后,输出结果是
#include<stdio.h>
void fun(int*A)
a[0]=a[1];
main( )
int a[10]=10,9,8,7,6,5,4,3,2,1,,i;
for(i=2;i>1=0;i-) fun(&a[i]);
for(i=0;i<10;i++) printf("%d,a[i]);
printf("//n");

[单项选择]下列程序执行后的输出结果是
void func(int *a,int b[])
b[0]= *a+6;
main( )
int a,b[5];
a=0; b[0] =3;
func(&a,b);printf("%d/n",b[0]);
A. 6
B. 7
C. 8
D. 9
[单项选择]下列程序运行后的输出结果是
void fune1(int i);
void fune2(int i);
char st[]="hello,friend!";
void fune1(int i)
printf("%e",st[i]);
if(i<3)i+=2;fune2(i);

void func2(int i)
printf("%c",st[i]);
if(i<3) i+=2;fune1(i);

main( )
int i=0;
fund(i);printf("/n");

A. hello
B. hel
C. hlo
D. hlm
[填空题]以下程序的输出结果是 【17】
void fun( )
static int a;
a+=2;
printf("%d",a);

main( )
int cc;
for(cc=1;cc<=4;cc++)fun( );
printf("/n");

[填空题]以下程序的输出结果是 【18】
void fun( )
static int a=0;
a+=2;printf("%d",a);

main( )
int cc;
for(cc=1;cc<4;cc++)fun( );
printf("/n");

[填空题]以下程序的输出结果是 【17】
void fun( )
static int a=0;
a+=2; printf("%d",a) ;

main( )
int cc;
for(cc=1;cc<4;cc++)fun( );
printf("/n");

[单项选择]以下程序运行后的输出结果是 void swap(int x, int y) {int t; t=x;x=y;y=t; } main( ) {int a=15, b=16; swap(a, b); printf("% d % d", a, b); }
A. 15, 16
B. 16, 15
C. 15, 15
D. 16, 16
[填空题]以下程序的输出结果是______。
void fun( )
static int a=0;
a+=2;printf("%d",a);

main( )
int cc;
for(cc=1;cc<4;cc++)fun( );
printf("/n");

[填空题]51. 下面程序执行后输出的结果是
int m=13;
int fun(int x, int y)
int m=3;
return(x*y-m);

main( )
int a=7,b=5;
printf("%d//n",fun(a,B) /m);

[填空题]以下程序运行后的输出结果是【 】。 void swap(int x,int y) { int t; t=x;x=y;y=t;printf("%d%d",x,y); } main( ) { int a=3,b=4; swap(a,b);pintf(("%d%d",a,b); }
[简答题]以下程序的输出结果是
void reverse(int a[],int n)
int i,t;
for(i=0;i<n/2;i++)
t=a[i]; a[i]=a[n-1-i];a[n-1-i]=t;

main( )
int b[10]=1,2,3,4,5,6,7,8,9,10;int i,s=0;
reverse(b,8);
for(i=6;i<10;i++)s+=b[i];
printf("%d/n",s);

[填空题]以下程序运行后输出的结果是______。
void swap(int x,int y)
int t;
t=x; x=y; y=t; printf("%d %d",x,y);

main( )
int a=3,b=4;
swap(a,b);printf("%d %d/n",a,b);

[填空题]以下程序运行后的输出结果是【 】。   void fun(int x,int y)   { x=x+y;y=x-y;x=x-y;   printf("%d,%d,",x,y);}   main( )   { int x=2,y=3;    fun(x,y);    printf("%d,%d/n",x,y);   }

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码