Question DSA-BIT-0078
HardWhich bit trick checks whether integers a and b 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 checks whether integers a and b 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