Review Quiz 4 Examining memory Testing Huffman (rest) Endianness ------------------------------ char can hold values from -128 to 127. It is a signed type. unsigned char (or uchar) can hold values from 0 to 255. It is an unsigned type. For a binary file---or any other file that might contain characters not seen on a US Englishkeyboard, use unsigned char (or uchar). 0x80 = (8 x 16) + (0 x 1) = 128 Therefore, 0xde ('\xde') must be >128. ... because 0xd > 0x8. 0xde ('\xde') = 0xd x 16 + 0xe x 1 = (13 x 16) + (14 x 1) = 222 For Huffman testing, if you want to have an array of bytes in your tests (e.g., test_huffman.c), you can't generally use "▒". You have to use uchar expected_contents[] = { '\xde', \xca', '\xf0', … }. Sometimes, you might have '\x00' among your bytes. LESSON: Do not depend on unsigned byte data being terminated by a '\0'.