首页 > 技术文章 > 取一个数(1个字节)的高低4位

lazyboy 2014-07-08 11:48 原文

char c = 0x61;
int high = c >> 4;
int low = c & 0x0F;

  

推荐阅读