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.

Syntax

Parameter

It does not take any parameter.

Return value

It returns a string representing the bits in the bitset.

Example 1

Output:

mystring: 1111
Next TopicC++ bitset



Please Share

facebook twitter google plus pinterest