Question DSA-BIT-0067
HardWhat is −x in two's complement equal to?
- A.
x >> 1
- B.
~x + 1
- 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 −x in two's complement equal to?
x >> 1
~x + 1
Sign up free to see the answer and a step-by-step explanation.
~x − 1
x ^ 1