what is the meaning of signed & unsigned with char data type?
unsigned char
Collapse
X
-
Tags: None
-
Considering a system with 8 bit characters::
In signed char the first bit (Most significant bit) holds the signs and the remaining 7 bits hold the actual value; hence the range: -128 to +127 (max value being 2^7). In unsigned char all the 8 bits hold the value; range:0 to 255 (max value being 2^8).Comment
-
Originally posted by pradeep kaltariConsidering a system with 8 bit characters::
In signed char the first bit (Most significant bit) holds the signs and the remaining 7 bits hold the actual value; hence the range: -128 to +127 (max value being 2^7). In unsigned char all the 8 bits hold the value; range:0 to 255 (max value being 2^8).Comment
Comment