Answers for "function to write a string in loercase in c++"

C++
0

function to write a string in loercase in c++

/* tolower example */
#include <stdio.h>
#include <ctype.h>
int main ()
{
  int i=0;
  char str[]="Test String.\n";
  char c;
  while (str[i])
  {
    c=str[i];
    putchar (tolower(c));
    i++;
  }
  return 0;
}
Posted by: Guest on February-04-2021

Code answers related to "function to write a string in loercase in c++"

Browse Popular Code Answers by Language