

MCQOPTIONS
Saved Bookmarks
1. |
Which of these expressions will return true if the input integer v is a power of two? |
A. | (v | (v + 1)) == 0; |
B. | (~v & (v – 1)) == 0; |
C. | (v | (v – 1)) == 0; |
D. | (v & (v – 1)) == 0; |
Answer» E. | |