相关试题
单选题 以下描述正确的是( )。
单选题 有以下程序 #include<stdio.h> void main() { char *s="ABC"; do { printf("%d",*s%10); s++; }while(*s); } 注意,字母A的ASCII码值为65。程序运行后的输出结果是( )
单选题 有以下程序 #include<stdio.h> int x=1; int f(int a) { static int x=2; int n=0; if(a%2) { static int x=3;n+=x++; } else { static int x=5;n+=x++; } return n+x++; } void main() { int sum=x,i; for(i=0;i<4;i++) sum+=f(i); printf("%d",sum); } 程序运行后的输出结果是( )。
单选题 以下程序的运行结果是( )。 #include <stdio.h> #include <string.h> void main() { char s1[100]="12345",s2[10]="678",s3[]="90"; strcat(strcpy(s1,s2),s3); puts(s1); }
单选题 以下选项不正确的是( )。
单选题 有以下程序 #include <stdio.h> int f(int x) { int n; if(x==1) return 1; n = x+f(x-1); return (n); } void main() { printf("%d",f(5)); } 程序的输出结果是( )。
单选题 若函数调用时的实参为变量时,以下叙述中正确的是( )。
单选题 如果变量“int a=11,c=10;”,那么表达式(--a!=c++)?(--a):++c 的值是( )。