单项选择题

有以下程序
  #include
  main()
  { int a=2,b=2,c=2;
  printf("%d\n",a/b&c);
  }
  程序运行后的输出结果是()

A.O
B.1
C.2
D.3

<上一题 目录 下一题>
热门 试题

单项选择题
有以下定义和语句 struct workers { int num;char name[20];char c; struct {int day; int month; int year;} s; }; struct workers w,*pw; pw=&w; 能给w中year成员赋1980的语句是()

A.*pw.year=198O;
B.w.year=1980;
C.pw->year=1980;
D.w.s.year=1980;

单项选择题
有以下程序 #include main() {int b [3][3]={O,1,2,0,1,2,O,1,2},i,j,t=1; for(i=0;i<3;i++) for(j=ij<=1;j++) t+=b[i][b[j][i]]; printf( %d n ,t); } 程序运行后的输出结果是()

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

相关试题
  • 有以下程序 #include main() { FIL...
  • 有以下程序 #include main() { int...
  • 有以下定义和语句 struct workers { i...
  • 有以下程序 #include #include struct...
  • 有以下程序 #include #define SUB(a...