[案例9.6]设计1个函数void LwrToUpr(char str[]),将 字符串中小写字母转换成大写,其它字符不作处理。 #include "stdio.h" #include "conio.h" void LwrToUpr(char str[]) void main() char string[11]="C Language"; printf("Before being converted:%sn",string); LwrToUpr string); printf("After being converted:%s\n",string); getch(); 2024/10/28 38 2024/10/28 38 [案例9.6] 设计1个函数void LwrToUpr (char str[ ]),将 字符串中小写字母转换成大写,其它字符不作处理。 #include "stdio.h" #include "conio.h" void LwrToUpr (char str[ ]); void main( ) { char string[11] = "C Language"; printf("Before being converted: %s\n", string); LwrToUpr ( string ); printf("After being converted: %s\n", string); getch(); }