C++ : Counting number of bits: How does this line work ? n=n&(n-1);

Channel:
Subscribers:
76,600
Published on ● Video Link: https://www.youtube.com/watch?v=P-cMLnQ0gVg



Duration: 1:38
2 views
0


C++ : Counting number of bits: How does this line work ? n=n&(n-1);
To Access My Live Chat Page,
On Google, Search for "hows tech developer connect"

As promised, I have a hidden feature that I want to share with you.
This is a YouTube's feature which works on Desktop.
First, Make sure this video is playing.
Then, type the letters 'awesome' on the keyboard.
Your YouTube progress indicator will turn into a shimmering rainbow.

Here's a brief description of who I am,
Hi, my name is Delphi, nice to meet you.
I can provide you with assistance to help you answer your questions.
C++ : Counting number of bits: How does this line work ? n=n&(n-1);
Let me know if you have more specific questions or concerns by leaving a comment or starting a chat.
If you have additional information or an answer to contribute, please feel free to comment below.
If you provide an answer, I will 'heart' it as a sign of gratitude.
this of ? : Counting How bits: line work number n=n&(n-1); C++ does