Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - What do the low 8 bits and high 8 bits in c++ mean?
What do the low 8 bits and high 8 bits in c++ mean?
Have you studied some theories of discrete mathematics and computer storage? Yeah, it's not hard to understand, is it?

In a computer, the smallest storage unit is byte, and the smallest recognizable unit is bit, 0 or 1. 1byte=8bit.

When it comes to high and low bits, at least 16 bit = 2 bytes should be stored.

For example, the numbers in the memory are:

0 1 1 1 1 100 10000000

0111100 This is the high eight, 10000000 This is the low eight.

16 stop loss is expressed as:

0x7c80

10 is expressed as:

3 1872

Octal is:

076200

The actual storage content is not necessarily an integer, but can be two asccii characters or a utf- 16 encoded character.