Bitmasking quiz ques 6

I could not understand the language of the ques

hi @pandeykshitiz05_0ec52bd954a1fc73, please send the pic we dont have quiz question

There is no option to send pic…let me write the ques

bitmask count set bits 2? ans- Total number of set bits in binary representation of a n

hi @pandeykshitiz05_0ec52bd954a1fc73, yeah so that’s what the meaning of counting set bits in a number, u count the no of 1 in bin rep of that no.

eg for 5 --> bin rep --> 101 set bit counts = 2 (no of 1’s)

hope its clear :slight_smile:

okay thank you understood

@pandeykshitiz05_0ec52bd954a1fc73 cool! :slight_smile:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.