【单选题】下列程序的运行结果为( )。 #include void abc(char*str) { int a,b; for(a=b=0;str[a]!='\0';a++) if(str[a]!='c') str[b++]=str[a]; str[b]='\0';} void main() { char str[]="abcdef"; abc(str); printf("str[]=%s",str);}
【单选题】以下程序运行结果为( )。 str1"; break; case –1: echo "str break; case 0: echo "str = str1"; break; default: echo "str str1"; } ?>
【简答题】[A] problems [B] secrets [C] names [D] intentions
【单选题】下列程序的运行结果为( ). void abc(char *str) { int a,b; for(a=b=0;str[a]!='\0';a++) if(str[a]!='c') {str[b]=str[a]; b++; }str[b]='\0'; } main( ) { char str[]="abcdef"; abc(str); printf("str[]=%s",str); }
【单选题】下列程序运行后的输出结果是 ( ) 。 #include void abc(char *str) { int a,b; for(a=b=0;str[a]!=’\0’;a++) if(str[a]!=’c’) str[b++]=str[a]; str[b]=’\0’; } void main() { char str[]=”abcdef”; abc(str); printf(“str[]=%s...
【单选题】以下程序运行结果为( )。 $str = "LAMP"; $str1 = "LAMPBrother"; $strc = strcmp($str, $str1); switch ($strc){ case 1: echo "str > str1"; break; case –1: echo "str break; case 0: echo "str = str1"; break;...
【单选题】以下程序运行结果为( )。 str1"; break; case –1: echo "str str1"; } ?>
【简答题】阅读理解。 The world out of doors is full of secrets. There are so many secrets, and they are so interesting that thousands of men and women, boys and girls are busy studying them. All around us are birds,...
【单选题】以下程序运行结果为( )。 $str = "LAMP"; $str1 = "LAMPBrother"; $strc = strcmp($str, $str1); switch ($strc){ case 1: echo "str > str1"; break; case –1: echo "str str1"; }