Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Bitwise - Check power of 2 or not
//g++ 5.4.0 #include <iostream> int main() { int num; std::cin >> num; if(num && !(num & (num - 1))) std::cout << "Power of 2"; else std::cout << "Not power of 2"; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
CPP - Arrays - Ex.1
ISPrime
Job Scheduling
Trapping rain water problem
Tower Of Hanoi
Adress
Member function detection
Binary Tree
Dar
Cpp update 1
Please log in to post a comment.