Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

check whether kth bit is 1

T = A & (1 << k)
 
PREVIOUS NEXT
Tagged: #check #kth #bit
ADD COMMENT
Topic
Name
7+3 =