现在位置: 首页 > admin发表的所有文章
2011年9月 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 #include <stdio.h> void fun(char *s) { int i, n, k; char c; n=0; for(i=0; s[i]!='\0'; i++) n++; /**********found**********/ if(n%2==0) k=n-____ ; else k=n-2; /**********found**********/ c=______; for(i=k-2; i>=1; i=i-2) s[i+2]=s[i]; /**********found**********/ s[1]=_________; } main() { char s......
阅读全文
在二级考试中,选择题占10分。 请先思考,自己先做练习,然后看提示,最后再看答案和题目分析。 21.C语言规定,在一个源程序中main函数的位置   _____(21)_____   。 A.必须在最开始              B.必须在最后 C.必须在预处理命令的后面    D.可以在其他函数之前或之后 22.以下选项中,______(22)______ 是C语言关键字 A.printf    B.include    C.fun   D.default 23.已知有声明"int a=3,b=4,c;",则执行语句"c=1/2*(a+b);"后,c的值为__(23)___ 。 A.0    B.3    C.3.5   D.4 24.设指针变量占2个字节的内存空间,若有......
阅读全文