单项选择题

有以下程序:
main()
int m=3,n=4,x;
x;-m++;
x=x+8/++n;
printf("%d\n",x);
程序运行后的输出结果是( )。

A.3
B.5
C.-1
D.-2
<上一题 目录 下一题>
热门 试题

单项选择题
结构化程序由3种基本结构组成,3种基本结构组成的算法()。

A.可以完成任何复杂的任务
B.只能完成部分复杂的任务
C.只能完成符合结构化的任务
D.只能完成一些简单的任务

单项选择题
有以下程序: 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
相关试题
  • 有以下程序: main() char k; int ...
  • (48)~(50)以下程序的功能是:建立...
  • 有以下程序: #include <stdlib.h> ...
  • 有以下程序: int *f(int *x, int...
  • 设有如下程序: #include’string.h ma...