C语言库toupper()函数

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

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

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

int main () {
   int i = 0;
   char c;
   char str[] = "Tutorials Point";

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

   return(0);
}

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

基础教程推荐