38. Bitwise Rotation and Counting-I

Question.7

A developer uses this function to check if a buffer size is a power of two:

int is_power_of_two(uint32_t n) {
   return (n & (n - 1)) == 0;
}

He calls is_power_of_two(0). What does it return?

Need Help? Refer to the Quick Guide below

Select Answer