1.

Which operator is used to access the nth bit in a bitset?(a) ->(b) [](c) .(d) *

Answer» The correct answer is (b) []

The best I can explain: [] operator is used to access the nth bit of a bitset from the right side. For example, if my bitset b is 1010 then b[0] represents 0 and b[1] represents 1.


Discussion

No Comment Found

Related InterviewSolutions