Write a program to string lowercase( ) function


 /* Write a program to string lowercase( ) function. */

#include<iostream.h>

#include<conio.h>

#include<string.h>

void main()

{

char a[10];

clrscr();

cout<<“enter name=”;

cin.get(a,10);

int length=strlen(a);

cout<<“length of string=”<<length;

cout<<endl<<“lowercase=”<<strlwr(a);

cout<<endl<<“uppercase=”<<strupr(a);

getch();}

/* output:

enter name=VeneetA

length of string=7

lowercase=veneeta

uppercase=VENEETA*/

Related Posts

Comments are closed.