Signed char
From Just Solve the File Format Problem
(Difference between revisions)
(remove this for now) |
(released) |
||
Line 16: | Line 16: | ||
| uniform type = | | uniform type = | ||
| conforms to = | | conforms to = | ||
− | | released = | + | | released = 1983 |
| image = | | image = | ||
| caption = | | caption = |
Latest revision as of 07:04, 13 May 2015
signed char is the smallest signed integer type in C++, it often gets typedef-ed as "byte" (alternatively people use unsigned char for that reason) because it uses one byte of memory (depending upon what architecture defines it as, but no less than 8 bits). The range of values that can definitely be stored in this type is -128 – 127.
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | value |
---|---|---|---|---|---|---|---|---|
1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | -128 |
0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 127 |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |