C++ bitset to_ulong() FunctionC++ bitset to_ulong() is used to convert the contents of the bitset to an unsigned long integer. It returns an unsigned long with the integer value that has the same bits set as the bitset. SyntaxParameterIt does not take any parameter. Return valueIt returns an Integer value with the same bit representation as the bitset object. Example 1Output: 11111 as an integer is : 31 Example 2Output: 111111 as an integer is : 63
Next TopicC++ bitset
|