![](https://cos-cdn.shuashuati.com/pipixue-wap/2020-1230-1107-56/ti_inject-812ce.png)
下列给定,函数 fun() 的作用是:将字符串 tt 中的小写字母都改为对应的大写字母, 其他字符不变。例如,若输入 "edS , dAd" ,则输出 "EDS , DAD" 。 请改正的错误,使它能得到正确结果。 不要改动 main 函数,不得增行或删行,也不得更改程序的结构,注释语句( /**found**/ )下方的第一条语句有错误。 #include #include char *fun(char tt[]) { int i; /**********************found***********************/ for(i=0;tt[i]=’\o’;i++) { /**********************found***********************/ if((tt[i]>='A')&&(tt[i]<='Z')) tt[i]-=32; } return(tt); } main() { int i; char tt[81]; printf("\nPlease enter a string: "); gets(tt); printf("\nThe result string is: \n%s",fun(tt)); }