C++ Function to Check if Integer is Power of Two July 30, 2015 bit hacks, c / c++, code, interview questions, programming languages 2 Comments Given an integer, write a function to determine if it is a power of two. This is not new, and the solution has been posted at Using a Faster … [Continue Reading...]