Categories




C program to convert string to lower case / String function

String Lowercase:

The string function “strlwr()” is used to convert the upper case into lower case. It take only one string.

In the program we will use “strlwr()” to convert upper case words, even sentence to lower case. First, we will ask the user to input words or sentence in uppercase then convert them to lowercase.

NOTE: If you are just learning c programming or beginner in programming. Then I recommend you to study the following topics so that make you understand C programming in brief.

 SWITCH CASE
Looping
*   Array and Type’s

So without delay let’s go to programming.

C Program To Convert String To Lower Case:

 #include<stdio.h>  
#include<conio.h> 
#include<string.h>
int main()
{
 char string1[30];
 printf("n Enter any word:");
 gets(string1);
 strlwr(string1);
 printf("Lowercase:%s",string1);
 return 0;
}

OUTPUT:

 

Output:













If you have any problem then do not forget to leave your comment. I will be so pleased to help you and available 24 hours for you. You can even visit my social media and leave your questions. Do not forget to leave your feedback, Your feedback is very important for us.

SIMILAR POST:

C  program to convert uppercase to lowercase.
C program to reverse string .
C program to  find the length of string.
String Function.
C program to read salary of 200 employee and count the number of employee between 5000  to 10000 salary  

Loading...

admin

Leave a Reply

Your email address will not be published. Required fields are marked *