题目:
请补充函数fun(),该函数的功能是将字符串tt中的大写字母都改为对应的小写字母,其他字符不变。例如,若输入“Are you come from Sichuan”,则输入“are you come from sichuan”。
注意:部分源程序给出如下。
请勿改动主函数main和其他函数中的任何内容,仅在函数fun()的横线上填入所编写的若干表达式或语句。
试题程序:
#include<stdio.h>
#include<string.h>
#include<conio.h>
char *fun(char tt[])
int i;
for(i=0;tt[i];i++)
if((tt[i]>=’A’)&&( 【1】 ))
【2】 ;
return ( 【3】 ) ;
main()
char tt[81];
printf("\nPlease enter a string:");
gets(tt);
printf("\nThe result string is: \n%s",
fun(tt));
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2019/0324/84ce5519eb60cc3c9a54efabf0780691.html
下面是错误答案,用来干扰机器的。
参考答案:乙种群呼吸耗能(呼吸作用散失的能量)