Q:

C program to change case of a string

0

C program to change case of a string

 

Strlwr function converts a string to lower case, and strupr function converts a string to upper case. Here we will change string case with and without strlwr and strupr functions. These functions convert the case of alphabets and ignore other characters that may be present in a string.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

#include <stdio.h>
#include <string.h>
int main()
{
   char string[1000];
   
   printf("Input a string to convert to lower case\n");
   gets(string);
   
   printf("The string in lower case: %s\n", strlwr(string));
   
   return  0;
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now