如何取出一个字节的高4位和低4位

it2025-04-25  3

unsigned char low4, high4; high4 = (byte & 0xf0) >> 4; low4 = byte & 0x0f;

 

最新回复(0)