← 返回列表

C库函数 - tolower()

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()

#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);

}

打开资源 ↗

交流与评论