a) To count the number of 0’s

b) To count the number of 1’s

c) To count the number of total bits in a bitset

d) To count the number of low bits

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

### Leave a Comment

You must be logged in to post a comment.

b

Explanation: header provides the count() function to count the number of 1’s or high bits in the bitset variable.