![](https://static.youtibao.com/asksite/comm/h5/images/m_q_title.png)
[主观题]
有如下程序: #defineN2 #defineMN+1 #defineNUM2*M+1 main() { inti; for(i=1;i<=NU
有如下程序:
#define N 2
#define M N+1
#define NUM 2*M+1
main()
{
int i;
for(i=1;i<=NUM;i++)printf("%d\n",i);
}
该程序中的for循环执行的次数是
A.5
B.6
C.7
D.8
查看答案
![](https://static.youtibao.com/asksite/comm/h5/images/solist_ts.png)
有如下程序:
#define N 2
#define M N+1
#define NUM 2*M+1
main()
{
int i;
for(i=1;i<=NUM;i++)printf("%d\n",i);
}
该程序中的for循环执行的次数是
A.5
B.6
C.7
D.8
A.de
B.字符′c′
C.字符′c′的地址
D.无确定的输出结果
有程序如下 USE CJ M.zF=0 SCAN M.ZF=M.ZF+ZF ENDSCAN ?M.ZF RETURN 其中数据库文件CJ.DBF中有2条记录,内容如下 XM ZF 1 李四 500.00 2 张三 600.00 运行该程序的结果应当是
A.1100
B.1000
C.1600
D.1200
有如下程序 main() { int x=3; do { printf("%d",x--);} while(!x); }该程序的执行结果是______。
A.321
B.3
C.不输出任何内容
D.陷入死循环
有如下程序段 int a=14,b=15,x; char c='A'; x=(a&&b)&&(c<'B'); 执行该程序段后,x的值为______。
A.真
B.假
C.0
D.1