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.