我正在读取一个包含unsigned char变量的.cpp文件,它尝试按位左移16位,因为a unsigned char由8位组成,左移16位将擦除所有位并用8位填充它.
unsigned char
unsigned char byte=0xff; byte << 16;
c c++ bit-manipulation
bit-manipulation ×1
c ×1
c++ ×1