Is there any logic behind ASCII codes' ordering?

前端 未结 7 1958
星月不相逢
星月不相逢 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:34

    If you look at the binary representations for 'a' and 'A', you'll see that they only differ by 1 bit, which is pretty useful (turning upper case to lower case or vice-versa is just a matter of flipping a bit). Why start there specifically, I have no idea.

提交回复
热议问题