問題詳情
28. 有以下程序 int f(int A) { return a%2; } main() { int s[8]={1,3,5,2,4,6},i,d=0; for (i=0;f(s);i++) d+=s; printf("%dn",D); } 程序运行后的输出结果是
(A)9
(B)11
(C)19
(D)21
(A)9
(B)11
(C)19
(D)21
參考答案
答案:A
難度:非常困難0
統計:A(0),B(1),C(0),D(0),E(0)
內容推薦
- 34有以下定义和语句 int a[3][2]={1,2,3,4,5,6,},*p[3]; p[0]=a[1]; 则*p[0]+1)所代表的数组元素是 (A)a[0][1] (B)a[1
- 27)以下能正确定义二维数组的是 (A)int a[][3]; (B)int a[][3]=2{2*3}; (C)int a[][3]={}; (D)int a[2][3]={{1},{2},
- (A) Therefore (B) Besides (C) Instead (D) Otherwise
- (A) large (B) small (C) new (D) grand
- (A) tale (B) agreement (C) arrangement (D) report
- (A) hope (B) promise (C) suggestion (D) belief
- 有以下程序 main() { int a=666,b=888; printf("%dn",a,B); } 程序运行后的输出结果是 (A)错误信息 (B
- 有以下程序 main() { char a,b,c,d; scanf("%c,%c,%d,%d",&a,&b,&c,&D); printf("c,%
- 用C语言编写的代码程序 (A)可立即执行 (B)是一个源程序 (C)经过编译即可执行 (D)经过编译解释才能执行
- 有以下程序 main() { int m=0256,n=256; printf("%o %on",mn,n); } 程序运行后的输出结果是 (A)02
內容推薦
- 有以下程序 main() { char s[]"Yesn/No",*ps=s; puts(ps+4); *(ps+4)=0; puts(s); }
- 有如下程序 #include main() {FILE *fp1; fp1=fopen("ftxt","w"); fprintf(
- (A) surprised (B) annoyed (C) disappointed (D) worried
- 有以下程序 main() {char s[]="ABCD",*p; for(p=s+1;p<S+4;P++)PRINTF("%SN",
- 有以下程序 main() { unsigned int a; int b=-1; a=b; printf("%u",A); } 程序运行后的输出结
- AOnly three local students won Chinese Blog(博客)Competition. And 15 of the 18 awards want to students
- (A) trouble (B) gift (C) fact (D) trick Ks5u
- 若有以下说明和语句,int c[4][5],(*p)[5];p=c;能正确引用c数组元素的是(A)p+1 (B)*(p+3)(C)*(p+1)+3 (D)*(p[0]+2])
- 在函数调用过程中,如果函数funA调用了函数 funB,函数funB又调用了函数funA,则 (A)称为函数的直接递归调用 (B)称为函数的间接递归调用 (C)称为函数的循环调用 (D)C
- 有以下程序 void fun(int *a,int i,int j) { int t; if(i<J) { t=a;a=a[j];a[j]=t; i++; j--;
- Which of the following is TRUE according to the passage?(A) Chinese students won most of the
- (A) perform (B) write (C) hear (D) question Ks5u
- (A) talked about (B) cared about (C) wrote about (D) heard about
- 有以下程序 main() { int a=7,b=8,*p,*q,*r; p=&a;q=&b; r=p; p=q;q=r; printf("%d,%d,%d,%dn
- 有以下说明和定义语句 struct student { int age; char num[8];}; struct student stu[3]={{20,"200401
- What Miss Gao said suggests that(A) she likes to blame the authorities (B) she has a sense o
- (A) means (B) ends (C) begins (D) proves Ks5u
- 已有定义:int i,a[10],*p;,则合法的赋值语句是 (A)p=100; (B)p=a[5]; (C)p=a[2]+2; (D)p=a+2;
- s12和s2已正确定义并分别指向两个字符串。若要求:当s1所指串大于s2所指串时,执行语句S;则以下选项中正确的是 (A)if(s1>s2)S; (B)if(strcmp(s1,s2)
- (A) beyond (B) over (C) behind (D) through
- 48~以下程序的功能是:建立一个带有头结点的单向链表,并将存储在数组中的 字符依次转储到链表的各个结点中,请从与下划线处号码对应的一组选若中选择出 正确的选项。 #includ
- The passage in mainly about(A) how Chinese students won the awards in the competition(B) why
- 以下叙述中正确的是(A)局部变量说明为static存储数,其生存期将得到延长(B)全局变量说明为static存储类,其作用域将被扩大(C)任何存储类的变量在未赋初值时,其值都是不确定的(D)形参
- (A)*s (B)s (C)*s++ (D)(*s)++
- BForeign drivers will have a pay on-the-spot fines of up to £900 for breaking the traffic law to be