Program for string function strlwr() in c programming language


/* Program for string function strlwr() in c programming language  */

#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
  char str1[15];
  clrscr();
  puts("Enter your string in Upper case :");
  gets(str1);
  puts("\nString in lower case :");
  strlwr(str1);
  puts(str1);
  getch();
}

===================
OUTPUT:-

Enter your string in Upper case :
INTERNET                                                                       
                                                                                
String in lower case :                                                         
internet

Comments