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

以下函数实现的功能是()。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--; }} A.将一个字符串首尾颠倒 B.计算字符串的长度 C.统计字符串中的空格个数 D.将字符串中的小写字母变成大写字母

时间:2023-02-02 10:19:24

相似题目