題庫堂
檢索
題庫堂
首頁
數學
英文學習
政治學
統計學
經濟學
藥理學
中醫藥物學
財政學
法學知識
公共行政
警察學
BI規劃師
財務管理
公共衛生學
工程經濟學
電力電子學
當前位置:
首頁
25.若变量已正确定义,要求程序段完成求5!的计算,不能完成此操作的程序段是B (A)for(i=1,p=1;i<=5;i++) p*=i; (B)for(i=1;i<=5;i++
問題詳情
25.若变量已正确定义,要求程序段完成求5!的计算,不能完成此操作的程序段是B
(A)for(i=1,p=1;i<=5;i++) p*=i;
(B)for(i=1;i<=5;i++){ p=1; p*=i;}
(C)i=1;p=1;while(i<=5){p*=i; i++;}
(D)i=1;p=1;do{p*=i; i++; }while(i<=5);
參考答案
答案:B
難度:非常困難0
統計:A(1),B(0),C(0),D(0),E(0)
上一篇 :
10.在Windows环境下,单击当前窗口中的按钮“× ”(右上角的关闭按钮),其功能是(A)将当前应用程序转为后台运行 (B)退出Windows后再关机(C)终止当前应用程序的运行 (D)退出Win
下一篇 :
18.有以下程序 main() { int m=0256,n=256; printf("%o %on",mn,n); } 程序运行后的输出结果是 (A)02
資訊推薦
11.用C语言编写的代码程序 (A)可立即执行 (B)是一个源程序 (C)经过编译即可执行 (D)经过编译解释才能执行
26.有以下程序 main() { char a,b,c,d; scanf("%c,%c,%d,%d",&a,&b,&c,&D); printf("c,%
19.有以下程序 main() { int a=666,b=888; printf("%dn",a,B); } 程序运行后的输出结果是 (A)错误信息 (B
【題組】40. (A) hope (B) promise (C) suggestion (D) belief
【題組】41. (A) tale (B) agreement (C) arrangement (D) report
【題組】42. (A) large (B) small (C) new (D) grand
【題組】44. (A) Therefore (B) Besides (C) Instead (D) Otherwise
27)以下能正确定义二维数组的是 (A)int a[][3]; (B)int a[][3]=2{2*3}; (C)int a[][3]={}; (D)int a[2][3]={{1},{2},
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
41.程序中对fun函数有如下说明 void *fun(); 此说明的含义是: (A)fun了数无返回值 (B)fun函数的返回值可以是任意的数据类型 (C)fun函数的返回值是无
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
35.有以下程序 main() {char str[][10]={"China","Beijing"},*p=str; printf("%
42.有以下程序 main() { char s[]"Yesn/No",*ps=s; puts(ps+4); *(ps+4)=0; puts(s); }
47.有如下程序 #include main() {FILE *fp1; fp1=fopen("f1.txt","w"); fprintf(
【題組】43. (A) surprised (B) annoyed (C) disappointed (D) worried
36. 有以下程序 main() {char s[]="ABCD",*p; for(p=s+1;p<S+4;P++)PRINTF("%SN",
43.有以下程序 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
【題組】51. (A) trouble (B) gift (C) fact (D) trick Ks5u
29.若有以下说明和语句,int c[4][5],(*p)[5];p=c;能正确引用c数组元素的是(A)p+1 (B)*(p+3)(C)*(p+1)+3 (D)*(p[0]+2])
37.在函数调用过程中,如果函数funA调用了函数 funB,函数funB又调用了函数funA,则 (A)称为函数的直接递归调用 (B)称为函数的间接递归调用 (C)称为函数的循环调用 (D)C
44.有以下程序 void fun(int *a,int i,int j) { int t; if(i<J) { t=a;a=a[j];a[j]=t; i++; j--;
【題組】57. Which of the following is TRUE according to the passage?(A) Chinese students won most of the
【題組】52. (A) perform (B) write (C) hear (D) question Ks5u
【題組】45. (A) talked about (B) cared about (C) wrote about (D) heard about