Question DSA-BIT-0060
MediumWhich bit trick finds whether two integers have opposite signs?
- A.
(a | b) == 0
- B.
(a ^ 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
Which bit trick finds whether two integers have opposite signs?
(a | b) == 0
(a ^ b) < 0
Sign up free to see the answer and a step-by-step explanation.
(a & b) < 0
a + b < 0