找考题网-背景图
单项选择题

有以下程序
  #include
  main()
  {int a=1,b=0;
  if(!a) b++;
  else if(a==0)if(a)b+=2;
  else b+=3;
  printf(”%d\n”,b);
  }
  程序运行后的输出结果是()

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

热门试题