Strlwr () function in c program
strlwr() srting function in c program :
The strlwr( ) function is a built-in function in C and is used to convert a given string into lowercase.
The strlwr( ) function is a built-in function in C and is used to convert a given string into lowercase.
Parameter:
- str: This represents the given string which we want to convert into lowercase.
Returns: It returns the modified string obtained after converting the characters of the given string str to lowercase.
Example :
Input : ATIKURRAHMAN
Output : atikurrahman
Program code :
#include<stdio.h>
#include<string.h>
int main()
{
char sr[100];
printf("Enther the valu : ");
scanf("%s",&sr);
strlwr(sr);
printf("%s",sr);
///printf("%s",strlwr(sr));
return 0;
}
Output :

No comments