Question DSA-BIT-0076
HardWhat is the XOR of all numbers from 1 to n when n % 4 == 3?
- A.
n
- B.
0
- 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
Bit Manipulation question
What is the XOR of all numbers from 1 to n when n % 4 == 3?
n
0
Sign up free to see the answer and a step-by-step explanation.
1
n + 1