Now I got bored and thought of starting a "game".
Everyone can write code in this thread. Maybe a function or a simple algorithm or just a single code line.
I'll start with a piece of code. Someone else shall then guess what the code does and write their own piece of code, preferable in C or C++, and not to long.
So, here's the code in php taggs:
What does it do?PHP Code:
(n & (n - 1)) == 0