next up previous
Next: Example: Character to Numeric Up: Data Representation Previous: Sign Extension

Characters

Non-numerical data includes:

Up to 256 characters may be encoded using 1 byte.

The American Standard for Computer Information Interchange (ASCII) contains 128 characters.

tabular643

Notes:

ASCII codes for digits are not equal to the numeric values of the digits. For example, ASCII 3 is 0x33.

When character codes are interpreted as unsigned integers:

  1. Character codes for digits are in numeric order.
  2. The rightmost hex digit of a digit code equals the numeric value of the digit.
  3. Character codes for letters are in alphabetic order.
  4. Uppercase and lowercase alphabetic codes differ by 0x20. (Shift key clears bit tex2html_wrap_inline2854 .)
  5. Control (nonprinting) characters differ from lowercase alphabetic characters by 0x60. (Ctrl key clears bits tex2html_wrap_inline2856 .)





CS 301 Class Account
Mon Sep 13 11:15:41 ADT 1999