What is the use of the set() function in bitset?

a) Used to make alternate bits zero
b) Used to make a bit 0 in a bitset
c) Used to make all bits zero
d) Used to set bit(s) in a bitset

1 thought on “What is the use of the set() function in bitset?”

  1. b
    Explanation: header provides the any() function which returns true if none of the bit is set to 1 in the bitset variable.

Leave a Comment