Question PSC-BIT-0049
MediumWhat does the following pseudocode print?
Integer n = 22
Print n & (-n)
- A.
4
- B.
2
- 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 does the following pseudocode print?
Integer n = 22
Print n & (-n)
4
2
Sign up free to see the answer and a step-by-step explanation.
22
1