【单选题】下面程序的运行结果是( ). #include "stdio.h" #include "string.h" main( ) { char *s1="AbDeG"; char *s2="AbdEg"; s1+=2;s2+=2; printf("%d\n",strcmp(s1,s2)); }
【简答题】______ left _____ the second crossing, then you’ll see the school. A. Take, on B Turn, at C Turn, from
【简答题】以下程序的运行结果是( ) #include "stdio.h" char* fun(char *s1,char *s2) { char *p=s2; while((*s1)!='\0') { *s2=*s1; s1++,s2++; } return p; } void main(void) { char *p,*strcpy; char *s1="world cup!"; char ...
【单选题】Make sure to the lights when you leave. [ ]
【单选题】若输入"abcdef"、"abdef",以下程序的输出结果为( )。 #include #include main() { int n; char s1[20],s2[20],*p1,*p2; scanf("%s",s1); scanf("%s",s2); p1=s1; p2=s2; n=strcmp(p1,p2); printf("%d\n",n);}
【简答题】函数 intersec 的功能是:将既出现在 s1 中、又出现在 s2 中的字符串保存到 s3 字符串中,函数返回 s3 中字符串的个数。 源程序如下: #include #include int intersec(char s1[][10],char s2[][10],char s3[][10],int m,int n){ int i,j,k=0; for(i=0;i for(j=0;j if(...
【单选题】以下程序执行后的输出结果是________。 #include " stdio.h " #include " string.h " void main() { char s1[10],*s2= " abcdef " ; strcpy(s1,s2); printf( " %s " ,s1); }
【单选题】.下面程序的运行结果是( )。 #include "stdio.h" #include "string.h" main() { char *s1="AbDeG"; char *s2="AbdEg"; s1+=2; s2+=2; printf("%d\n",strcmp(s1,s2)); getch(); }
【单选题】_____ right at the first crossing, the bank is _____ the left. [ ]
【简答题】When was Tsinghua University founded?