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);
Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies. View all posts by Prem Tiwari