Javatpoint Logo
Javatpoint Logo

C++ bitset to_string() Function

C++ bitset to_string() function is used to construct a basic string object that represents the bits in the bitset as a succession of zeros and ones.



It does not take any parameter.

Return value

It returns a string representing the bits in the bitset.

Example 1


mystring: 1111
Next TopicC++ bitset

Help Others, Please Share

facebook twitter pinterest