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

[单项选择]以下程序的输出结果是
#include<stdio.h>
struct st
i int x;int *y;*p;
int dt[4]=10,20,30,40;
struct st aa[4]=50,&dt[0],60,&dt[0],60,&it[0],60,&dt[0],;
main( )
p=aa;
printf("%d/n",++(p->x));
A. 10
B. 11
C. 51
D. 60

更多"以下程序的输出结果是 #include<stdio.h> stru"的相关试题:

[单项选择]

有以下程序
  #include
  #include
  struct A
  { int a; char b[10]; double c;};
  void f(struct A t);
  main( )
  { struct A a={1001,"ZhangDa",1098.0};
  f(a); printf("%d,%s,%6.1f/n",a.a,a.b,a.c);
  }
  void f(struct A t)
  { t.a=1002; strcpy(t.b,"ChangRong");t.c=1202.0;}
  程序运行后的输出结果是()


A. 1001,zhangDa,1098.0
B. 1002,changRong,1202.0
C. 1001,ehangRong,1098.O
D. 1002,ZhangDa,1202.0
[单项选择]以下程序的输出结果是
#include<stdio.h>
struct st
int x;int *y;*p;
int dt[4]=10,20,30,40;
struct st aa[4]=50,&dt[0],60,&dt[0],60,&dt[0],60,&dt[0],;
main( )
p=aa;
printf("%d/n",++(p->x));
A. 10
B. 11
C. 51
D. 60
[单项选择]以下程序的输出结果是( )。
#include<stdio.h>
struct st
int x; int *y; *p;
int dt[4]=10, 20, 30, 40;
struct st aa[4]=(50, &dt[0], 60, &dt[0], 60, &dt[0], 60, &dt[0], );
main( )
p=aa; printf("%d/n", ++(p->x) );
A. 10
B. 11
C. 51
D. 60
[单项选择]以下程序运行后的输出结果是
#include<stdio.h>
struct st
int x,y; data[2]=1,10,2,20;
main( )
struet st *p=data;
printf("%d,",p->y);printf("%d/n",(++p)->x);

A. 10,1
B. 20,1
C. 10,2
D. 20,2
[单项选择]有以下程序: #include struct STU { int num; float TotalScore; }; void f(struct STU p) {struct STU s[2]={{20044,550},{20045,537}}; p.num=s[1].num; p.TotalScore=s[1].TotalScore; } main( ) { struct STU s[2]= {{20041,703},{20042,580}}; f(s[0]); printf("%d %3.0f/n",s[0].num,s[0].TotalScore); } 程序运行后的输出结果是______。
A. 20045 537
B. 20044 550
C. 20042 580
D. 20041 703
[单项选择]以下程序的输出结果是______。
#include<stdio.h>
struct stu
int num;
char name[10];
int age;

void fun(struct stu*p)
printf("%s/n",(*p).name);
main( ) struct stu students[3]= 9801,"Zhang",20,
9802,"Wang",19,
9803,"Zhao",18 ;
fun(students+2);

A. Zhang
B. Zhao
C. Wang
D. 18
[单项选择]以下程序的输出结果是( )。
#include<stdio.h>
struct st
int x; int *y; *p;
int dt[4] = 10,20,30,40 ;
struct st aa[4]= 50,&dt[0],60,&dt[0],60,&dt[0],60,&dt[0];
main( )
p=aa;
printf("%d/n",++(p->x));

A. 10
B. 11
C. 51
D. 60
[单项选择]以下程序运行后的输出结果是()
#include<stdio.h>
struct st
int x,y; data[2]=1,10,2,20;
main( )
struet st *p=data;
printf("%d,",p->y);printf("%d/n",(++p)->x);

A. 10,1
B. 20,1
C. 10,2
D. 20,2
[单项选择]有以下程序:
#include <stdio.h>
struct st
int x, y; ) data[2]=1, 10, 2, 20;
main( )
struct st *p=data;
printf("%d, ",p->y); printf("%d/n",(++p) ->x);

程序的运行结果是( )。
A. 10, 1
B. 20, 1
C. 10, 2
D. 20, 2
[单项选择]有以下程序:
#include <stdio.h>
struct st
int x,y; data[2]=1,10,2,20;
main( )
struct st*p=data;
printf("%d,",p->y);printf("%d/n",(++p)->x);

程序的运行结果是
A. 10,1
B. 20,1
C. 10,2
D. 20,2
[单项选择]有以下程序:
#include <stdio.h>
struct st
int x,y;data[2]=1,10,2,20;
main( )
struct st *p=data;
printf("%d,",p->y); printf("%d/n",(++p)->x);

程序的运行结果是( )。
A. 10,1
B. 20,1
C. 10,2
D. 20,2
[单项选择]有以下程序: #include <stdio.h> struct S { int a, b; } data[2]={10, 100, 20, 200}; main( ) { struct S p=data[1]; printf("%d/n", ++(p.a)); } 程序运行后的输出结果是______。
A. 10
B. 11
C. 20
D. 21
[单项选择]

有以下程序:
#include <strino.h>
struct STU
{int num;
float TotalScore;};
void f(struct STU p)
{struct STU s[2]={{20044,550},{20045,537}};
p.num=s[1].num;p.TotalScore=s[1].TotalScore;
}
main( )
{struct STU s[2]={{20041,703},{20042,580}};
f(s[0]);
printf("%d%3.0t/n",s[0].num,s[0].TotalScore);
}
程序运行后的输出结果是()。


A. 20045 537
B. 20044 550
C. 20042 580
D. 20041 703
[单项选择]有以下程序:
#include<stdio.h>
struct tt
int x;struct tt*y;*p;
struct tt a[4]=20,a+1,15,a+2,30,a+3,17,a
main( )
int i;
p=a;
for(i=1;i<=2;i++)printf("%d",p->x);p=P->y;

程序的运行结果是()。
A. 20,30,
B. 30,17
C. 15,30
D. 20,15
[单项选择]以下程序的输出结果是( )。
struct st
int x,*y;
*p;
int s[]= 10,20,30,40);
struct st a[]= 1,&s[0],2,&s[1],3,&s[2],4,&s[3];
main( )
p=a;
print("%d/n",++(*(++p)->y));

A. 10
B. 11
C. 20
D. 21
[单项选择]以下程序的输出结果是
int f( )
static int i=0;
int s=1;
s+=i; i++;
return s;

main ( )
int i,a=0;
for (i=0;i<5; i++) a+=f( );
printf ( "%d/n" ,a);

A) 20 B) 24 C) 25 D) 15

我来回答:

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

订单号:

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