C语言大小写字母转换

日期:2019-12-10 02:19:38 人气:1

C语言大小写字母转换

在C语言中转换大小写字母,可用ctype.h头文件中声明的函数toupper和tolower。 toupper: int toupper(int c); 若c为小写字母,则将其转换为大写字母;否则,不转换,直接返回c。 tolower: int tolower(int c); 若c为大写字母,则将其转换为小写字母;否则,不转换,直接返回c。
    A+
热门评论