by Dinesh Thakur Category: C Programming (Pratical)

In this program user ask to convert all the lower case character into uppercase. For this user declare two variable named lower and upper. Here in the program user ask to enter the character for converting. Then user use the method to convert like puts the lower variable into getchar() condition whenever it gets character it will turn into uppercase and then trespass the value to upper variable and print them in the end with printing method.

Problem statement:

This is C program that asks the user to covert the lower case character into upper case.

  1. Declaring the variables.
  2. Using conversion method.
  3. Display result on the screen.

Here is C source code for Converting the Character into Uppercase from lowercase. The output of this program shown below. 

#include <stdio.h>

#include <ctype.h>
void main ( )
{
       int lower, upper;
       clrscr();
       printf("Enter a Lower Character to Convert Uppercase : ");
       lower = getchar();
       upper = toupper(lower);
       putchar(upper);
       getch();
}
Output :

 C Program How  Convert Lowercase to Uppercase Character



About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.