1. [单选题]执行下面程序中的输出语句后,a的值是()。includemain(){int a; printf("%d\n",(a=3*5,a
执行下面程序中的输出语句后,a的值是( )。 #include stdio.h> main() { int a; printf("%d\n",(a=3*5,a*4));
A. 15
B. 20
C. 10
D. 60
2. [单选题]为了把一个记录型变量的内容写入文件中指定的位置,所使用的语句的格式为______。
A. Get文件号,记录号,变量名
B. Get文件号,变量名,记录号
C. Put文件号,变量名,记录号
D. Put文件号,记录号,变量名
3. [单选题]有以下程序段: int x=3; do {printf("%d",x-=2);) while(!(--x)); 其输出结果是( )。
A. 1
B. 3 0
C. 1 -2
D. 死循环
4. [单选题]有下列程序: main {int i,s=0,t[]={1,2,3,4,5,6,7,8,9); for(i=0;i<9;i+=2)s+=*(t+i); printf("%d\n",s); } 程序执行后的输出结果是( )。
A. 45
B. 20
C. 25
D. 36
5. [单选题]有以下程序: #includestring.h> void f(char *s,char *t) {char k; k=*s; +s=*t; *t=k; S++; t--; if(*s) f(s,t); } main() {char.str[10]="abcdefg",*p; p=str+strlen(str) /2+1; f(p,p-2); printf("%s\n",str); } 程序运行后的输出结果是 ______。
A. gfedcba
B. gbcdefa
C. abedcfg