This is a C Program to Find ASCII Value of a Character. After compilation and run of this program, if the user will enter any character, then it will return the ASCII (American Standard Code for Information Interexchange) value of that character.
printf("Enter a character: ");
// Reads character input from the user
// %d displays the integer value of a character
// %c displays the actual character
printf("ASCII value of %c = %d", c, c);
If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.