What is the fastest way to get the 4 least significant bits in a byte (C++)?

后端 未结 6 1076
说谎
说谎 2021-02-09 07:00

I\'m talking about this:

If we have the letter \'A\' which is 77 in decimal and 4D in Hex. I am looking for the fastest way to get D.

I thought about two ways:

6条回答
提交回复
热议问题