Find whether a given number is a power of 4 or not – Bit Algorithm – A simple method is to take log of the given number on base 4, and if we get an integer.
power of 2 in c programming
1 Article
1
Find whether a given number is a power of 4 or not – Bit Algorithm – A simple method is to take log of the given number on base 4, and if we get an integer.