How do I decide whether a number( ranging from 8 bit to 32 bit) is power of two? I know that any number which is power of 2 contain only one bit set.
I want to test the condition in only one C statement. Any idea??/
Let me know
How do I decide whether a number( ranging from 8 bit to 32 bit) is power of two? I know that any number which is power of 2 contain only one bit set.
I want to test the condition in only one C statement. Any idea??/
Let me know
hello, internet!
Thanks...