题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2024-03-29 02:57:08

[填空题]以下程序运行后的输出结果是______。
#include <string.h>
main( )
char ch[]="abc",x[3][4]; int i;
for(i=0; i<3;i++) strcpy(x[i],ch);
for(i=0;i<3;i++) printf("%s",&x[i][i]);
printf("/n");

更多"以下程序运行后的输出结果是______。 #include <str"的相关试题:

[填空题]

以下程序运行后的输出结果是()。
#include
#include
#include
main( )
{ char *p;int i;
p=(char*)malloc(sizeof(char)*20);
strcpy(p,"welcome");
for(i=6;i>=0;i--) putchar(*(p+i));
printf("/n"); free(p);
}


[填空题]

以下程序运行后的输出结果是()。
#include
main( )
{ FILE *fp;int x[6]={1,2,3,4,5,6},i;
fp=fopen("test.dat","wb");
fwrite(x,sizeof(int),3,fp);
rewind(fp);
fread(x,sizeof(int),3,fp);
for(i=0;i<6;i++) printf("%d",x[i]);
printf("/n");
fclose(fp);
}


[单项选择]以下程序运行后的输出结果是
#include<stdio.h>
main( )
FILE * fp;int a[10]=1,2,3,i,n;
fp=fopen("d1.dat","w");
for(i=0;i<3;i++) fprintf(fp,"%d",a[i]);
fprintf(fp,"/n");
fclose(fp);
fp=fopen("d1.dat","r");
fscanf(fp,"%d",&n);
fclose(fp);
printf("%d/n",n);

A. 12300
B. 123
C. 1
D. 321
[填空题]以下程序运行后的输出结果是
#include <stdio, h>
main( )
int a=3,b=4,c=5,t=99;
if(b<a && a<c) t=a;a=c;c=t;
if(a<e && b<c) t=b;b=a;a=t;
printf( "%d %d %d //n" ,a,b,e);

[填空题]以下程序运行后的输出结果是_________。 #include main( ) { char ch[]="abc",x[3][4]; int i; for(i=0;i<3;i++) strcpy(x[i],ch); for(i=0;i<3;i++) printf("%s",&x[i][i]); printf("/n"); }
[填空题]

以下程序运行后的输出结果是()。
#include
main( )
{ int a;
a=(int)((double)(3/2)+0.5+(int)1.99*2);
printf("%d/n",a);
}


[单项选择]以下程序运行后的输出结果是
#include<stdio.h>
main( )
int x=1,y=0,a=0,b=0;
switch(x)
case 1:
switch(y)
ease 0:a++;break;
ease 1:b++;break;

ease 2:a++;b++;break;
case 3:a++:b++:

printf("a=%d,b=%d/n",a,b);

A. a=1,b=0
B. a=2,b=2
C. a=l,b=1
D. a=2,b=1
[填空题]以下程序运行后的输出结果是
# include<string.h>
main( )
char ch[]="abc",x[3][4];int i
for(i=0;i<3;i++) strcpy(x[i],ch);
for(i=0;i<3;i++)printf("%s",&x[i][i]);
printf("//n");

[填空题]以下程序运行后的输出结果是 【20】
#include <stdio.h>
main ( )
iht x=0210; printf("%x /n" ,x);

[填空题]以下程序运行后的输出结果是 【9】
#include <stdio.h>
main ( )
char a[] ="123456789", *p;
int i =0;
p=a;
while( * p)
if(i%2 ==0) *p=’*’;
p++;i++;

puts(a);

我来回答:

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

订单号:

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