单项选择题

表达式3.6-5/2+1.2+5%2的值是______。

A.4.3
B.4.8
C.3.3
D.3.8
<上一题 目录 下一题>
热门 试题

单项选择题
有以下程序main( ){ char k; int I;for(i=1;i<3;i++){ scanf(“%c”,&k);switch(k){ case ‘0’: printf(“another n”);case ‘1’: printf(“number n”); } } }程序运行时,从键盘输入:01,程序执行后的输出结果是( )。
A.another    number
B.another    number    another
C.another   number   number
D.number    number
单项选择题
有定义语句:int a=1,b=2,c=3,x;,则以下选项中各程序段执行后,x的值不为3的是( )。
A.if (c<a) x=1;   else if (b<a) x=2;    else x=3;
B. if (a<3) x=3;   else if (b<a) x=2;    else x=1;
C. if (a<3) x=3;    if (a<2) x=2;   if (a<1) x=1;
D.if (a<b) x=b;   if (b<c) x=c;   if (c<a) x=a;
相关试题
  • 有以下程序: void sort(int a[],in...
  • 有以下程序:void fun(int *a,int i...
  • 索引属于( )。
  • 设有两个串p和q,求q在p首次出现位置的运算...
  • 数据库设计包括两个方面的设计内容,它们是...