1.

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

Answer» The correct choice is (c) Returns true if any bit is set 1

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


Discussion

No Comment Found

Related InterviewSolutions