题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-10-15 18:22:20

[单项选择]以下程序运行后的输出结果是
#include"stdio.h"
main( )
struct date
int year,month,day;today;
printf("%d/n",sizeof(struct date));

A. 6
B. 8
C. 10
D. 12

更多"以下程序运行后的输出结果是 #include'stdio.h' m"的相关试题:

[单项选择]以下程序运行后的输出结果是
#include
#include
main( )
char str[][20]='One * World", "One * Dream!", *p=str[1];
printf("%d,", strlen(p)); printf("%s/n", p);

A. 9,One * World
B. 9,One * Dream
C. 10,One * Dream!
D. 10,One * World
[单项选择]以下程序运行后的输出结果是 #include #include main( ) { char str[][20]={'One * World", "One * Dream!"}, *p=str[1]; printf("%d,", strlen(p)); printf("%s/n", p); }
A. 9,One * World
B. 9,One * Dream
C. 10,One * Dream!
D. 10,One * World
[单项选择]有以下程序程序运行后的输出结果是【 】。 main( ) { Int k=5,n=0; do {switch(k) {case 1: case 3:n+=1;k--;break; default:n=0;k; case 2: case 4 : n+=2;k--;break; } printf("%d",n); }while(k>0 &&n<5); }
A. 235
B. 0235
C. 02356
D. 2356
[单项选择]以下程序运行后的输出结果是
main( )
int x=23;
do
printf("%d",x--);while(!x);

A. 321
B. ·23
C. 不输出任何内容
D. 陷入死循环
[单项选择]以下程序运行后的输出结果是
#include<stdio.h>
main( )
 char s[]="rstuv";
 printf("%c/n", *s+2);

A. tuv
B. 字符t的ASCII码值
C. t
D. 出错
[单项选择]以下程序运行后的输出结果是
#include<stdio.h>
main( )
 int a=1,b=2;
 while(a<6)b+=a; a+=2; b%=10;
 printf("%d, %d/n", a, b);

A. 5,11
B. 7,1
C. 7,11
D. 6,1
[单项选择]以下程序运行后的输出结果是
#include<stdio.h>
main( )
char s[]="012xy"; int i, n=0;
 for(i=0; s[i]!=0; i++)
  if(s[i]>='a' && s[i]<='z') n++;
  printf("%d/n", n);

A. 0
B. 2
C. 3
D. 5
[单项选择]以下程序运行后的输出结果是
#include<stdio.h>
main( )
int x=8;
for(;x>0;x--)
if(x%3) printf("%d,",x--);continue;
printf("%d,",--x);


A. 7,4,2
B. 8,7,5,2
C. 9,7,6,4
D. 8,5,4,2
[单项选择]以下程序运行后的输出结果是
#include<stdio.h>
main( )
int a[]=1,2,3,4,y,*p=&a[3];
--p;y=*p;printf("y=%d/n",y);

A. y=0
B. y=1
C. y=2
D. y=3
[单项选择]以下程序运行后的输出结果是
#include<stdio.h>
main( )
int s[12]=1,2,3,4,4,3,2,1,1,1,2,3,c[5]=0,i;
for(i=0;i<12;i++) c[s[i]]++;
for(i=1;i<5;i++) printf("%d",c[i]);
printf("/n");

A. 1 2 3 4
B. 2 3 4 4
C. 4 3 3 2
D. 1 1 2 3
[单项选择]以下程序运行后的输出结果是 #include<stdio.h> main( ){  char s[]="rstuv";  printf("%c/n", *s+2); }
A. tuv
B. 字符t的ASCII码值
C. t
D. 出错
[单项选择]以下程序运行后的输出结果是
#include<stdio.h>
main( )
int b[3][3]=0, 1, 2, 0, 1, 2, 0, 1, 2, i, j, t=1;
for(i=0; i<3; i++)
for(j=i; j<=i; j++) t+=b[i][b[j][i]];
printf("%d/n", t);

A. 1
B. 3
C. 4
D. 9

我来回答:

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

订单号:

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