题目内容
(请给出正确答案)
[单选题]
阅读下列程序段,则程序的输出结果为#include "stdio.h"#define M(X,Y)(X)*(Y)#define N(X,Y)(X)/(Y)main(){ int a=5,b=6,c=8,k;k=N(M(a,b),c);printf("%d\n",k);
A.3
B.5
C.6
D.8
答案
查看答案
A.3
B.5
C.6
D.8
第2题
A.12
B.123
C.12345
D.0
第5题
int x=0,s=0;
while(!x!=0)s+=++x;
printf("%d",s);
则
A.运行程序段后输出0
B.运行程序段后输出1
C.程序段中的控制表达式是非法的
D.程序段执行无限次
第6题
A.运行程序段后输出0
B.运行程序段后输出1
C.程序段中的控制表达式是非法的
D.程序段执行无限次
第7题
A.7,8
B.8,8
C.7,10
D.8,10
第9题
A.531
B.420
C.654321
D.死循环