+ 4

Why unsigned char data type range is between 0 and 255?

Why unsigned char data type range is between 0 and 255?

18th Jan 2019, 1:26 PM
Zhenis Otarbay
Zhenis Otarbay - avatar
1 Respuesta
+ 4
Unsigned -> only positive values sizeof(unsigned char) is 1 byte hence the values of an unsigned char vary between 0 and (2^8 - 1)
18th Jan 2019, 2:00 PM
Zen
Zen - avatar