Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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

bool result = (x >> order_of_bit) & 1;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #extract #bit #byte
ADD COMMENT
Topic
Name
5+8 =