下列程序的输出结果是()#include<stdio.h>main(){int a=3,b=2,c=1;if(a<b)if(b<0) c=0;else c++;printf("%d\n",c);}
查看答案
下列程序的运行结果为()#include<stdio.h>main(){ struc tdate{int year,month,day;)today;printf("%d\n",sizeof(struct date));}
A. 8
B. 6
C. 10
D. 12
在面向对象方法中,一个对象请求另一个对象为其服务的方式是通过发送()。
A. 调用语句
B. 命令
C. N令
D. 消息
全年应纳税所得额()万元。
A. 159.02
B. 1602
C. 160.02
D. 190.12
要求通过while循环不断读入字符,当读入字母N时结束循环。若变量已正确定义,下列正确的程序段是()
A. while((ch=getchar ())!='N')printf("%c",ch);
B. while(ch=getchar()!='N') printf("%c",ch);
C. while(ch=getchar()=='N') printf("%c",ch);
D. while((ch=getchar()) =='N')printf('%c',ch);