The only "special" operators in C++ are those that cannot be overloaded. That is; the dot member operator (.), pointer to member operator (.*), ternary conditional operator (:?), scope resolution operator (::), sizeof() and typeof().
Chat with our AI personalities
Are very useful. Examples: & | ^ ~
They are very similar,but when we do logic operators there are still some differences.In c or c plus plus ,logic true can be expressed as'true' or '0',but in java,true is just 'true'.If you gave a zero,it will treat it as type of integer ,and so as false.
All arithmetic, logical operators are operators in c tokens. As: +, - , ++, --, %, &&, &, >>, << etc.
The relational operators are == (equal), != (not equal), < (less than), <= (less than or equal to), > (greater than) and >= (greater than or equal to). All relational operators are boolean, returning true or false depending on the l-value relationship with the r-value, with respect to the operator.
There are three logical operators in C; AND (&), OR (|), and NOT (^). These are the bitwise versions. The combinatorial versions are &&, , and !.