Is there any logic behind ASCII codes' ordering?

前端 未结 7 2008
星月不相逢
星月不相逢 2020-12-23 19:56

I was teaching C to my younger brother studying engineering. I was explaining him how different data-types are actually stored in the memory. I explained him the logistics b

7条回答
  •  醉话见心
    2020-12-23 20:22

    Here is very detailed history and description of ASCII codes: http://en.wikipedia.org/wiki/ASCII
    In short:

    • ASCII is based on teleprinter encoding standards
    • first 30 characters are "nonprintable" - used for text formatting
    • then they continue with printable characters, roughly in order they are placed on keyboard. Check your keyboard:
      • space,
      • upper case sign on number caps: !, ", #, ...,
      • numbers
      • signs usually placed at the end of keyboard row with numbers - upper case
      • capital letters, alphabetically
      • signs usually placed at the end of keyboard rows with letters - upper case
      • small letters, alphabetically
      • signs usually placed at the end of keyboard rows with letters - lower case

提交回复
热议问题