C program to print ASCII value of a character
What is ASCII value?
An ASCII value is a code (numeric value) of keys. We put the any character, symbol etc, than the computer can’t understand. A computer can understand only code and that code against each key is known as ASCII Code.
Program to get ASCII of a character in C
Output
Here, we just read a character and print it’s using %d format specifier, which is used to print an integer value. When we print the character value using %d the ASCII code prints on the screen.
Since, this is a very simple program for beginners, still you liked the program and its explanation, please share your comments.
need an explanation for this answer? contact us directly to get an explanation for this answer