C++ bitset none() Function

C++ bitsetnone() function is used to check whether no bit is set. If no bit is set then it returns true otherwise false.

Syntax

Parameter

It does not take any parameter.

Return value

It returns a Boolean value either true or false.

Example 1

Output:

0000000000000000 has no bits set.
1010 has 2 bits set.
Next TopicC++ bitset



Latest Courses