C语言库tolower()函数

#include stdio.h#include ctype.hint main () {int i = 0;char c;char str[] = TUTORIALS POINT;

编程学习网为您整理以下代码实例,主要实现:C语言库tolower()函数,希望可以帮到各位朋友。

#include <stdio.h>
#include <ctype.h>

int main () {
   int i = 0;
   char c;
   char str[] = "TUTORIALS POINT";

   while( str[i] ) {
      putchar(tolower(str[i]));
      i++;
   }

   return(0);
}

本文标题为:C语言库tolower()函数

基础教程推荐