Question PSC-BIT-0031
EasyWhat is the output of this pseudocode?
Integer n = 16
if ((n & (n - 1)) == 0)
Print "power"
else
Print "not"
end if
- A.
0
- B.
not
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Bitwise Operators question
What is the output of this pseudocode?
Integer n = 16
if ((n & (n - 1)) == 0)
Print "power"
else
Print "not"
end if
0
not
Sign up free to see the answer and a step-by-step explanation.
16
power