What is the use of the flip function in bitset?

a) Used to flip bit(s) in a bitset
b) Used to flip a bit in a bitset
c) Used to flip all bits to 1
d) Used to flip alternate bits

1 thought on “What is the use of the flip function in bitset?”

  1. a
    Explanation: header provides the flip() function to flip bit(s) in a bitset variable i.e. change the bits in a bitset for example 1100 on flipping becomes 0011.

Leave a Comment