单项选择题
请读程序:
#include <stdio.h>
#define SUB(X,Y) (X)*Y
main()
int a=3,b=4;
printf("%d\n",SUB(a++,b++));
上面程序的输出结果是( )。
A) 12
B) 15
C) 16
D) 20
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
下列程序的输出结果是()。 #define A 100 main() int i=0,sum=0; do if(i=(i 2)*2)continue; sum+=i; while(++i<A); print( %d n ,sum);
A. 2500
B. 2050
C. 4
D. 0
点击查看答案&解析
单项选择题
有以下程序: #include<stdio.h> main() int x=1,y=0,a=0,b=0; switch(x) case 1: switch(y) case 0:a++;break; case 1: b++;break; case 2:a++;b++;break; case 3:a++;b++; printf( a=%d,b=%d n ,a,b); 程序的运行结果是______。
A) a=1,b=0
B) a=2,b=2
C) a=1,b=1
D) a=2,b=1
点击查看答案&解析
相关试题
若给fun函数的形参s传送字符串“∪∪635...
下列程序的输出结果是______。 #in...
设有定义: struct person int ID;cha...
下列程序的输出结果是 int t(intx,inty...
有以下程序: #include<stdio.h> mai...