2009年(14)
分类: C/C++
2009-05-15 10:07:36
如果 High,Low定义为 char,temp的值是多少? 0xFFCA //temp = High << 8 | Low = 0xD500 | 0xFFCA = 0xFFCA 如果 High,Low定义为 unsigned char, 那temp值又是多少? 0xD5CA //temp = High << 8 | Low = 0xD500 | 0x00CA = 0xD5CA 如果High,Low定义为short,temp值又是多少? 0xD5CA //temp = High << 8 | Low = 0xD500 | 0x00CA = 0xD5CA