How to find ASCII Values of a Character :- ASCII value can be any integer number between 0 and 127 and consists of a character variable instead of the character itself in C programming. The value derived after the programming is termed as ASCII value. With the help of casting the character to an integer, the ASCII value can be derived. Every character has an individual ASCII value that can only be an integer. Every time the character is stored into a variable, as a substitute for keeping the character itself, the ASCII value of the specific character will get stored. ALGORITHM: - Step 1 : Start Step 2: Ask the user to insert any character Step 3: The character will be assigned to the variable ‘a’ Step 4 : Scan the character variable to find out the ASCII value of the character Step 5 : Stop CODE:- #include<stdio.h> int main() { char c; printf( "Enter the value of character:" ); // enter any character scanf("%c",&c);//store value in c p
In this blog, many programs are written in the c language. This blog helps to increase our knowledge