C++ Program to Find ASCII Value of a Character - What is ASCII Value of Character with Example

C++ Program to Find ASCII Value of a Character - What is ASCII Value of Character

C++ Program to Find ASCII Value of a Character

  • The char value is interpreted as an ASCII character.
  • American Standard Code for Information Interchange (ASCII).
  • It defines a specific way of representing English characters as numbers.
  • The numbers range between 0 and 127.
  • A char takes a memory size of 1 byte.
  • It stores a single character.
  • E.g b has the ASCII value of 98
  • Code values 65 to 90 inclusive are the uppercase letters A to Z, and 97 to 122 correspond to lowercase a to z. 

Examples of ASCII Character:

ASCII value of a


Output:


Example 2:

ASCII value of A
Output:


Example 3:

ASCII value of 8
Output:


Post a Comment

0 Comments