Write a short C++ function, is Two Power, that takes an int i and returns true if
Question:
Write a short C++ function, is Two Power, that takes an int i and returns true if and only if i is a power of 2. Do not use multiplication or division, however.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Data Structures And Algorithms In C++
ISBN: 9780470383278
2nd Edition
Authors: Michael T. Goodrich, Roberto Tamassia, David M. Mount
Question Posted: