Question PSC-BIT-0040
EasyWhat will be printed by the following pseudocode?
Integer n = 10
n = n ^ (1 << 1)
Print n
- A.
11
- B.
12
- 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 will be printed by the following pseudocode?
Integer n = 10
n = n ^ (1 << 1)
Print n
11
12
Sign up free to see the answer and a step-by-step explanation.
10
8