Saturday, 16 June 2018

Program to convert a upper case character into lower case character using function in C

/* upper to lower */
# include <stdio.h>
void upper-to-lower (char) ;
void main ()
{
char ch ;
printf ("\n Enter a upper case character:") ;
scanf ("%d", & ch) ;
upper-to-lower (ch) ;
getch () ;
}
void upper-to-lower (char ch)
{
ch = ch+32 ;
printf ("%c", ch) ;
}

No comments:

Post a Comment

Featured post

Kalgudi Interview Round!!

Those who cleared the second round of kalgudi got an email from exceller to complete their Kalgudi Interview Round. So here we will discuss ...