填空题

以下函数实现的功能是______。
void fun(char*s)
char*p,*q,temp;
p=s;
q=s+strlen(s)-1;
while(p<q)
temp=*p;
*p=*q;
*p=temp;
p++;
q--;

【参考答案】

将字符串首尾颠倒
热门 试题