Answers for "Check whether the jth object is in the subset"

C++
0

Check whether the jth object is in the subset

S = A & (1 << j)
If S = 0, then the j-th item of the set is off.
If S != 0 (to be precise, T = (1 << j)), then the j-th item of the set is on.
Posted by: Guest on April-18-2021

Code answers related to "Check whether the jth object is in the subset"

Browse Popular Code Answers by Language