The ~
operator is bitwise NOT, it inverts the bits in a binary number:
NOT 011100
= 100011
More Related Contents:
- What is the difference between the dot (.) operator and -> in C++? [duplicate]
- What does the question mark character (‘?’) mean in C++?
- Initializer lists and RHS of operators
- Implementing comparison operators via ‘tuple’ and ‘tie’, a good idea?
- What are the pointer-to-member operators ->* and .* in C++?
- Conversion constructor vs. conversion operator: precedence
- C++ [] array operator with multiple arguments?
- Overloading friend operator
- Why is ++i considered an l-value, but i++ is not?
- What does the >?= operator mean?
- Why does C++ need the scope resolution operator?
- Is it possible to get the function pointer of a built-in standard operator?
- What is the “–>” operator in C++?
- Concatenate two string literals
- What is the (“spaceship”, three-way comparison) operator in C++?
- Making operator
- What does ‘&’ do in a C++ declaration?
- What is the meaning of “operator bool() const”
- Can you make custom operators in C++?
- The copy constructor and assignment operator
- Multiple preincrement operations on a variable in C++(C ?)
- Operator Overloading in C++ as int + obj
- insert vs emplace vs operator[] in c++ map
- Logical XOR operator in C++?
- Why does the expression a = a + b – ( b = a ) give a sequence point warning in c++?
- Why is “operator void” not invoked with cast syntax?
- What is the difference between “::” “.” and “->” in c++ [duplicate]
- What does ‘**’ mean in C?
- Does the unary + operator have any practical use?
- Why use ++i instead of i++ in cases where the value is not used anywhere else in the statement?