Which of the following is correct about any() function in bitset?

a) Returns true if the number of 1’s equal to the number of 0’s
b) Returns true if any bit is set 0
c) Returns true if any bit is set 1
d) Returns true only if all bits are 1

1 thought on “Which of the following is correct about any() function in bitset?”

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

Leave a Comment