Math Fundamentals18 sections · 814 units
Open in CourseQuiz: Bitwise and Boolean
Knowledge check
Check Your Understanding
Why do we need the condition n > 0 in the power of two check?
- A.Because negative numbers can be powers of two
- B.Because zero and negative numbers are not powers of two
- C.To prevent overflow errors
- D.To make the code run faster