How to add two 8 bit numbers from an array to a 16 bit unsigned number

前端 未结 0 400
逝去的感伤
逝去的感伤 2021-02-08 06:39

I need to merge two 8-bit numbers from an array into a single 16-bit unsigned number.

My idea was to shift the low bits by 8 and divide the high bit

i.e

<         


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