下列程序的运行结果为( )。 群include<stdio.h> void abc(char*str) {int a,b,i,j; for(i=0;str[i]!=’ 0;i++) if(str[i]!==:’a’) str[j++]=str[i]; str[j]=’ 0’; } void main() {char str[]= abcdef ; abc(str); printf( str[]=%s ,str); }
下列程序的运行结果为( )。 群include<stdio.h> void abc(char*str) {int a,b,i,j; for(i=0;str[i]!=’\0;i++) if(str[i]!==:’a’) str[j++]=str[i]; str[j]=’\0’; } void main() {char str[]="abcdef"; abc(str); printf("str[]=%s",str); }