Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Parameter problem of MAKEWORD function in vc++
Parameter problem of MAKEWORD function in vc++
WORD is double-byte shaping.

The two parameters inside represent the values of the first and second bytes.

MAKEWORD( 1, 1) means that among the returned word values,

The first byte value is 1 and the second byte value is 1.

It is represented in binary.

0000000 10000000 1

The decimal number is 257.

Because one byte can indicate that the maximum unsigned shaping is 256.