How bitwise shift operators are used to combine bytes into a larger integer

后端 未结 0 761
梦如初夏
梦如初夏 2020-12-30 07:33

The following code combines two bytes into one 16 bit integer.

unsigned char byteOne = 0b00000010; // 2
unsigned char byteTwo = 0b00000011; // 3

uint16_t i =         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题