ASCII Value

ASCII stands for American Standard Code of Information Interchange. There are 256 (0 to 255) distinct characters and each character has its own value known as ASCII value. With the help of ASCII value characters can easily be converted into binary code which is understandable by C compiler.

Character type Range No. of characters ASCII value
Capital Letters A to Z 26 65 to 90
Small Letters a to z 26 97 to 122
Digits 0 to 9 10 48 to 57
Special Symbols 66 0-47, 58-64, 91-96, 123-127
Graphics Character 128 128 to 255
Total 256

Exercise Questions: ASCII Value

  1. WAP to Print ASCII Value of input character. C
  2. Print all characters with its ASCII value from 0 to 255 C
  3. Sum the ASCII value of a string. C