Coderwall
Ruby
Python
JavaScript
Front-End
Tools
iOS
More
Tips
Ruby
Python
JavaScript
Front-End
Tools
iOS
PHP
Android
.NET
Java
Jobs
Jobs
Sign In or Up
Joined March 2015
·
prasadg193
Prasad Ghangal
Pune
·
·
0 Protips
1 Comments
Posted to
Check if number power of 2
over 1 year ago
!(a&1) will tell wheather the number is even or not..But we need if it is power of 2.
Achievements
1 Karma
0 Total ProTip Views
!(a&1) will tell wheather the number is even or not..But we need if it is power of 2.