What is set bits

what is set bits and how we get output as 3

hello @TheSourabh we read about set bits when we cover the topic of bit manipulation .
set bits are the bits or 1 in the number formation .
like if you know that 3 is written as 011 in binary so we have 2 set bits in this .
set bits are the number of 1’s in the binary representation of the number .
hope i have cleared your doubt .
Happy Learning !!