LearnFrenzy
Sign in Take a free test

Operators and Expressions · Operators and Expressions MCQ · Question 10

The value of ~x Answer, explanation & discussion

  • MCQ
  • Medium
  • 0 comments
  • Answer explained
  • Moderated community
Question 10 Back to Exercise

What is ~7?

  • A -7
  • B 0
  • C 8
  • D -8 Correct
Correct Answer: Option D

Bitwise NOT of x equals -(x + 1) in two's complement, so ~7 is -8.

Discussion & Comments 0

Share your method, a shortcut, or ask about a step you didn't follow.

No comments yet. Be the first to share your solution!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links