单项选择题下列程序的运行结果为( )。 #include<stdio.h> void abc(char*str) int a,b,i,j; for(i=j=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> main() int a=2,b=3,p; p=f(a,b); printf( %d ,p); int f(a,b) int c; if(a>b)c=1; else if(a==b)c=0; else c=-1; return(c) ;