Which operator is used to access the nth bit in a bitset?

a) ->
b) []
c) .
d) *

1 thought on “Which operator is used to access the nth bit in a bitset?”

  1. b
    Explanation: [] 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.

Leave a Comment