单项选择题
请读程序: #include <stdio.h> #include <string.h> main() { char *s1="AbCdEf", *s2="aB"; s1++; s2++; printf("%d\n",strcmp(s1,s2)); } 上面程序的输出结果是( )。
A.正数
B.负数
C.零
D.不确定的值
热门
试题
单项选择题
读程序: #include <stdio.h> f(int b[],int n) { int i,r; r=1; for(i=0;i<=n;i++) r=r*b[i]; return r; } main() { int x,a[]={2,3,4,5,6,7,8,9}; x=f(a,3); printf( %d n ,x); } 上面程序的输出结果是( )。
A.720
B.120
C.24
D.6