Friday, 15 June 2018

Program to convert lower case character into upper without use of library function in C

/* lower to upper */
# include <stdio.h>
void lower -to- upper (char) ;
void main () ;
{
char ch ;
clrscr () ;
printf ("\n Enter a lower case character:") ;
scanf ("%d", & ch) ;
lower to upper (ch) ;
getch () ;
}
Void lower to upper (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 ...