题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2024-07-27 06:06:52

[填空题]下列程序的输出结果是 【13】 。 #include <stdio.h> void fun(int x) { if(x/2>0) fun(x/2); printf("%d",x); } main( ) { fun(3);printf("/n"); }

更多"下列程序的输出结果是 【13】 。 #include <stdio"的相关试题:

[填空题]以下程序运行后输出结果是 【11】 。 #include void fun(int x) { if(x/5>0) fun(x/5);  printf("/%dn",x);  } main( ) { fun(11); printf("/n"); }
[单项选择]以下程序运行后的输出结果是
#include
void fun(int P)
int d=2;
 P=d++; printf("%d", P);
 main( )
int a=1;
 fun(a); printf("%d/n', a);

A. 32
B. 12
C. 21
D. 22
[填空题]以下程序运行后的输出结果是_________。 #include void fun(char *s,int p,int k) { int i; for(i=p;i
[填空题]

有以下程序
  #include
  #include
  void fun(char *str)
  { char temp;int n,i;
  n=strlen(str);
  temp=str[n-1];
  for(i=n-1;i>0;i--) str[i]=str[i-1];
  str[0]=temp;
  }
  main( )
  { char s[50];
  scanf("%s",s); fun(s); printf("%s/n",s);}
  程序运行后输入:abcdef<回车>,则输出结果是 () 。


[填空题]以下程序运行后的输出结果是______。
#include
void fun(char *s,int p,int k)
int i;
for(i=p;i<K-1;i++)&NBSP;S[I]=S[I+2]; main( )
char s[]="abcdefg";
fun(s,3,strlen(s)); puts(s);

[单项选择]有以下程序 #include #include void fun(char *w, int m) { char s, *p1, *p2; p1=w; p2=w+m-1; while(p1A. 654321
B. 116611
C. 161616
D. 123456
[填空题]

以下程序运行后的输出结果是_________。
#include
void fun(char *s,int p,int k)
{ int i;
for(i=p;i}
main( )
{ char s[]="abcdefg";
fun(s,3,strlen(s)); puts(s);
}


[填空题]以下程序的输出结果是
#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;
[单项选择]下列程序段的输出结果是
#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<<endl;

A. 2143
B. 1212
C. 1234
D. 2112
[单项选择]有以下程序
#include
#include
void fun(char *s[ ],int n)
char *t; int i,j;
for(i=0; i<N-1;&NBSP;i++)&NBSP;
for(j=i+1; j<N;&NBSP;j++)&NBSP;
if(strlen(s[i])>strlen(s[j])) t=s[i]; s[i]=s[j]; s[j]=t;main( )
char *ss[]="bcc","bbcc","xy","aaaacc","aabcc";
fun(ss,5); printf("%s,%s/n",ss[0],ss[4]);程序的运行结果是______。
A. xy,aaaacc
B. aaaacc,xy
C. bcc,aabcc
D. aabcc,bcc
[填空题]以下程序的输出结果是 【8】 。 #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;}
[单项选择]下列程序段的输出结果是
#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<<endl;

A. 2143
B. 1212
C. 1234
D. 2112
[单项选择]下面程序的输出结果是( )。
#include <stdio.h>
void fun(int *s)
static int j=0;
do
s[j]+=s[j+1];
while(++j<2);

void main( )
int k,a[10]=1,2,3,4,5);
for(k=1;k<3;k++)
fun(a);
for(k=0; k<5;k++)
printf("%d",a[k]);

A. 35756
B. 23445
C. 35745
D. 12345
[填空题]以下程序的输出结果是 【17】
#include <stdio.h>
void fun( )
static int a=0;
a+=2;printf("%d",a);

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

我来回答:

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

订单号:

截图扫码使用小程序[完全免费查看答案]
请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码