单选题
下面程序的运行结果是( )。
下面程序的运行结果是( )。
#include
fun(char *p)
{int i,t; char ts[81];
for(i=0,t=0;p[i]='\\0';i+=2 )
if( ! isspace(*p+i)&&(*(p+i)!='a'))
ts[t++]=toupper(p[i];
ts[t]='\\0';
strcpy(p,ts);
}
main ( )
{char str[81]={"a_b_c_d_ef_g"); //( _表示空格)
fun(str);
puts(str);
}
A
BCDE
B
abcdeg
C
bcde
D
ABCDE
答案解析
正确答案:A
解析:
指针
