Â
In this,we are going to see a program in which a whole string in converted into all lowercase Letters using an in-built function of string.h header file in C Programming Language.Â
//Program to make a string in lowercase
#include <string.h>
#include <stdio.h>
int main()
{
//declaring variables
char destination[25];
char *a = "HELP FOR CODERS";
// syntax for copying string or string copying function
strcpy(destination, a);
printf("\nThe copied string is %s \n", destination);
// Converting all the characters of the string to lowercase\small letters using string lowercase function
strlwr(destination);
printf("\n%s is the lower case of the string \n", destination);
return 0;
}
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP