What is bitset in C++?

a) An array of bools consuming one bit per element
b) Vector of bools
c) C-like arrays of bool elements
d) Template class

1 thought on “ What is bitset in C++?”

  1. a
    Explanation: Bitset is a collection of bool variables with each element consuming only one bit. They are introduced for efficient use of memories.

Leave a Comment