题目内容

有以下程序: #include #define S(x)(x)"x"2 main() { int k一5,j=2; Drintf("%printf,",S(k+j));printf("%printf\n",S((k—j))); } 程序运行后的输出结果是()。

A. 98,18
B. 39,11
C. 39,18
D. 98,11

查看答案
更多问题

有以下程序: #include double f(double x); main() {double a=0; int i; for(i=0;i<30;i+=10)a+=f((double)i); printf("%5.of\n",a); } double f(double x) { return x*x+1; } 程序运行后的输出结果是()。

A. 503
B. 401
C. 500
D. 1404

有以下定义和语句: struct workers {int num;char name[20];char C; struct {int day;int month;int year;)S; }; struct workers w,*pw; pw=&w; 能给w中year成员赋1980的语句是()。

A. *pw.year=1980;
B. w.year=1980;
C. pw->year=1980
D. w.S.year=1980;

有以下程序: #include main() { int a; scanf("%d",&a); if(a++<9)printf("%d\n",a); clsc printf("%d\n",a--); } 程序运行时从键盘输入9<回车>,则输出结果是()。

A. 10
B. 11
C. 9
D. 8

How many test questions are discussed in the conversation?

A. Four.
B. Seven.
C. Eight.

答案查题题库