C Program to Convert Character to Uppercase

In this tutorial you will learn about the C Program to Convert Character to Uppercase and its application with practical example.

C Program to Convert Character to Uppercase

In this tutorial, we will learn to create a C program that will Convert Character to Uppercase in C programming.

Prerequisites

Before starting with this tutorial, we assume that you are the best aware of the following C programming topics:

  • Operators in C Programming.
  • Basic Input and Output function in C Programming.
  • Basic C programming.
  • Conditional Statements in C programming.

What is a character?

The character is a single entity in the English language or in any word. These characters can be any alphabets in lower case or upper case.

The lower case means the small letters. And the upper case means the capital letters of the English language.

For Example:-

In the word “W3Adda”, there are six characters, they are as follows

Here,

‘W’ is a character in the Upper case.

‘3’ is a digit.

‘A’ is a character in the upper case.

‘d’ is a character in the lowercase.

‘d’ is a character in the lower case.

‘a’ is a character in the lowercase.

Algorithm:-

Program to Convert Character to Uppercase

First, we will take the input character from the user. Then will pass that character in the conditional statements to check and convert it into the character to Upper case.

With the help of this program, we can convert that character to upper case.

Program Code:-

Output:-

In the above program, we have first initialized the required variable.

  • Chr = it will hold the character value for the input.

Input character from the user.

Checking the given character is an alphabet and covert it into an upper case alphabet.

Printing lowercase characters.

In this tutorial we have learn about the C Program to Convert Character to Uppercase and its application with practical example. I hope you will like this tutorial.