What does size() function returns?

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?”

  1. 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.

Leave a Comment