[单选题]

下列程序的输出结果是______。 struct exmple { int x; int y; }num[2]=}1,2,3,2}; main() { printf("%d/n",num[1].y*num[0].x/num[1].x);}

A.0

B.1

C.3

D.6

参考答案与解析:

相关试题

下列程序的输出结果是()。#includeint fun(intx){int a

[单选题]下列程序的输出结果是()。includeint fun(intx){int a; if(x==0‖x==1)return 3; elsea=下列程序的输出结果是( )。 #include<stdio.h> int fun(intx) { int a; if(x==0‖x==1) return 3; else a=x-fun(x-2); return a; } void main() { printf("%d",fun(7)); }A.2B.8C.9D.5

  • 查看答案
  • 下列程序的输出结果是______。struct st{int x;int*y;}

    [单选题]下列程序的输出结果是______。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,&dr[0],60,&dr[0],} main(){ p=aa; printf("%d/n",++(p->x));}A.51B.11C.10D.60

  • 查看答案
  • 下列程序的输出结果是______。 struct abc { int a,b,c

    [单选题]下列程序的输出结果是______。 struct abc { int a,b,c;}; main () { struct abc s[2]={{1,2,3},{4,5,6}}; int t;t=s[0].a+s[1].b; printf("%d/n",t); }A.5B.6C.7D.8

  • 查看答案
  • 以下程序的输出结果是() struct st {int x;int * y;}*

    [单选题]以下程序的输出结果是 ( ) 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.10B.11C.51D.60

  • 查看答案
  • 下面程序的输出结果是()。main(){struct m1{int a;int

    [单选题]下面程序的输出结果是( )。 main() {struct m1{int a;int b;}en[2]={1,3,2,7); printf("%d/n",en[0].b/en[0].a*en[1].a);A.6B.0C.1D.3

  • 查看答案
  • 以下程序的输出结果是 ______。struct HAR{int x,y;str

    [单选题]以下程序的输出结果是 ______。 struct HAR {int x,y;struct HAR*p;}h[2]; main() { h[0],x=1;h[0].y=2; h[1]x=3;h[1].y=4; h[0].p、&h[1];h[1].p=h; printf("%d%d/n",(h[0].p)->x,(h[1].p)->y; }A.12B.23C.14D.32

  • 查看答案
  • 以下程序的输出结果是______。struct HAR{int x,y;stru

    [单选题]以下程序的输出结果是______。 struct HAR {int x,y;struct HAR*p;}h[2]; main() { h[0].x=1;h[0].y=2; h[1].x=3;h[1].y=4; h[0].p=&h[1];h[1].p->y); printf("%d%d/n",(h[0].p)->x,(h[1].p)->y); }A.12B.23C.14D.32

  • 查看答案
  • 以下程序的输出结果是______。struct HAR{int x,y;stru

    [单选题]以下程序的输出结果是______。 struct HAR {int x,y;struct HAR *p;} h[2]; main() { h[0]x=1;h[0]y=2; h[1]x=3;h[1]y=4; h[0].P=&h[1];h[1].p=h; printf("%d%d/n",(h[0].p)->x,(h[1].p)->y); }A.12B.23C.14D.32

  • 查看答案
  • 下面程序运行后的输出结果是______。 struct abc{int a,b,

    [单选题]下面程序运行后的输出结果是______。 struct abc { int a,b,c; } main() { struct abc s [2]={{1,2,3},{4,5,6}}; int t=-s[0].a+s[1].b; printf("%d/n",t); }A.5B.6C.7D.8

  • 查看答案
  • 以下程序的输出结果是(11)。 intfun(intx,inty,int*p,i

    [主观题]以下程序的输出结果是 (11) 。int fun(int x,int y,int *p,int *q){ *p=x*y;*q=x/y;}main(){int a,b,c,d;a=4;b=3;fun(a,b,&c,&d);printf("%d,%d\n",c,d);}

  • 查看答案