無符號字元型 與 擴充套件ASCII碼錶
In C++ we have seen there is character type data called char. Sometimes we have seen unsigned char also. So here we will see what is basically the unsigned char means. What are the basic differences between signed char and unsigned char?
Signed char and unsigned char both are used to store single character. The variable stores the ASCII value of the characters. For an example if ‘A’ is stored, actually it will hold 65. For signed char we need not to write the signed
unsigned char ch = ‘n’;
Both of the Signed and Unsigned char, they are of 8-bits. So for signed char it can store value from -128 to +127, and the unsigned char will store 0 to 255.
The basic ASCII values are in range 0 to 127. The rest part of the ASCII is known as extended ASCII
By Smita Kapse
https://www.tutorialspoint.com/what-is-an-unsigned-char-in-cplusplus