编写一个C程序,将大写字母转换为小写字母,不使用字符串转换函数

编写一个C程序,将大写字母转换为小写字母,不使用字符串转换函数

在了解如何在不使用字符串转换函数的情况下将大写字母转换为小写字母之前,让我们来看一下使用转换函数将大写字母转换为小写字母的程序,然后您将清楚我们在程序中所做的事情:

示例

#include #include int main(){ char string[50]; printf("enter a string to convert to lower case

", strlwr(string)); //strlwr converts all upper to lower return 0; }