Question PSC-BIT-0042
MediumWhat will be printed by the following pseudocode?
Integer a = 12, b = 10
Print a & b, a | b, a ^ b
- A.
8 14 2
- B.
10 12 6
- 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 a = 12, b = 10
Print a & b, a | b, a ^ b
8 14 2
10 12 6
Sign up free to see the answer and a step-by-step explanation.
14 8 6
8 14 6