单项选择题
有以下程序: main( ) { int a=3,b=4,c=5,d=2; if(a>b) if(b>c) printf("%d",d++ +1); else printf("%d",++d +1); printf("%d\n",d); } 程序运行后的输出结果是( )。
A.2
B.3
C.43
D.44
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
程序中头文件typel.h的内容是:#define N 5#define M1 N*3程序如下:#include typel.h #define M2 N *2main( ){ int i;i=M1+M2; printf( %d n ,i);}程序编译后运行的输出结果是( )。
A.10
B.20
C.25
D.30
点击查看答案
单项选择题
以下非法的赋值语句是( )。
A.n=(i=2,++i);
B.j++;
C.++(i+1);
D.x=j>0;
点击查看答案&解析
相关试题
下面程序的功能是输出以下形式的金字塔图案...
有以下程序:struct STU{ char name[...
有以下程序:#include<stdlib.h>struct...
以下程序中函数f( )的功能是将n个字符串...
需求分析阶段的任务是确定( )。