Answers for "how to extract a bit from a byte in c++"

C++
0

how to extract a bit from a byte in c++

bool result = (x >> order_of_bit) & 1;
Posted by: Guest on October-23-2021

Code answers related to "how to extract a bit from a byte in c++"

Browse Popular Code Answers by Language