Analyst Integration Question:
Download Questions PDF

Explain the result of 1 XOR 1?

Integration Programmer Interview Question
Integration Programmer Interview Question

Answer:

Answer is zero, because XOR returns 1 if two operands are distinct and zero if two operands are same, for example 0 XOR 0 is also zero, but 0 XOR 1 or 1 XOR 0 is always 1.

Download Integration Programmer Interview Questions And Answers PDF

Previous QuestionNext Question
How to get the last digit of an integer?Explain test-driven development?