Program To Find ASCII Value Of Any Character

Hello friends, in this example, you will learn how to find ASCII value of any character in C programming language using the following topics:
  1. Data Types
  2. Variables And Constants
  3. Operators

Before starting the program, we need know that what is ASCII value. Lets know what is ASCII value.
ASCII value


The full name of ASCII is American Standard Code for Information Interchange.  Computers can only understand numbers, so ASCII code presents the letters in numbers.  It assigns letters, numbers, and other characters to 256 slots available in 8-bit code.  ASCII is the language created from decimal number binary, which is the main computer language.  As shown below, the decimal value of the lowercase "h" character is 104, which is "01101000" in binary.



Enter a char to find value: k
ASCII value of k= 104

Post a comment