a) To count the number of 0’s

b) To count the number of 1’s

c) To count the number of total bits used by bitset variable

d) To count the number of low bits

### 1 thought on “What does size() function returns?”

### Leave a Comment

You must be logged in to post a comment.

c

Explanation: header provides the size() function to count the number of bits used by the bitset variable. For example, if bitset variable is 1010 then size() function returns 4.