Is ASCII code 7-bit or 8-bit?

前端 未结 6 1316
情深已故
情深已故 2020-12-02 05:49

My teacher told me ASCII is 8-bit character coding scheme. But it is defined only for 0-127 codes which means it can be fit into 7-bits. So can\'t it be argued that ASCII bi

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-02 06:10

    when we call ASCII as 7 bit code, the left most bit is used as sign bit so with 7 bits we can write up to 127. that means from -126 to 127 because Max imam value of ASCII is 0 to 255. this can be only satisfied with the argument of 7 bit if last bit is considered as sign bit

提交回复
热议问题