题目内容

下列程序的运行结果为()#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);

若有定义:int a=4,b=5;float x=3.4,y=2.1;,则下列表达式的值为()(float) (a+b)/2+(int)×%(int)y

A. 5.5
B. 55
C. 5.500000
D. 55.00000

答案查题题库