• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
+ 3

Whats the reason behind ~0==-1 etc ?

Any number like 8 , ~8==-9 but why ... How we are getting this

operatorsc
17th Jun 2019, 7:02 AM
Vyom chandra Gallani
Vyom chandra Gallani - avatar
1 Answer

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
How can I print a Python set so it looks clean (no {} brackets or quotes)?
2 Votes
Where make_unique is better than unique_ptr(raw pointer)
0 Votes
Can someone help and explain better on slicing
1 Votes
How do I remove duplicates from a list but keep the order?
0 Votes
How do I print a multiplication table neatly?
0 Votes
Why we use return in function ?
0 Votes
Course
1 Votes
Hill Climbing
0 Votes
Real life projects
0 Votes
Leap year check
0 Votes