题目内容

下列4个程序中,完全正确的是()。

A. #include<stdio.h> main(); (/*programming*/ printf("programming!\n");}
B. # include<stdio.h> main() {/*/programming/*/ printf("programming!\n");}
C. #include<stdio.h> main() {/*/programming*/*/ printf("programming!\n");)
D. include<stdio.h> main() {/*programming*/ printf("programming!\n");}

查看答案
更多问题

有以下程序: #include<stdio.h> int fun(int*k) {int b=0; b=*k+b: return(B);} main() {int a[10]={1,2,3,4,5,6,7,8},i; for(i=2;i<4;i++){printf("%d",fun(&a[i]));} printf("\n"); } 程序运行后的输出结果是()。

A. 10 12
B. 8 10
C. 3 4
D. 10 28

(As far as) I am concerned, his politics (are) rather conservative (compared) with other (politicians).

As far as
B. are
C. compared
D. politicians

有以下程序: #include<stdio.h> int fun(int x,int y) {if(x==y)return(x); else return((x+y)/2); } main() {int a=1,b=2,c=3; printf("%d\n",fun(2*a,fun(b,C))); } 程序运行后的输出结果是()。

A. 2
B. 3
C. 4
D. 5

Although Professor Green's lectures usually ran (over) the (fifty-minute) period, (but none) of his students (ever) objected as they found his lectures both informative and interesting.

A. over
B. fifty-minute
C. but none
D. ever

答案查题题库