SUMMARY OF C++ OPERATORS
Operator
|
Meaning
|
Assoclativity
|
: :
[ ]
( )
.
->
|
Scope operator
Array element reference
Function call
Structure or class member
reference
Point to structure or
class member reference
|
Left to right
|
!
~
++
--
-
type
new
delete
*
&
sizeof
|
Logical negation
One’s complement
Incrementer
Decrementer
Unary
minus
Type
conversion
New
operator
Delete
operator
Pointer
reference (indirection)
Address operator
Size
of object
|
Right to left
|
*
/
%
+
-
|
Multiplication
Division
Modulus
Addition
subtraction
|
Left to right
|
<<
>>
|
Left
shift
Right
shift
|
Left to right
|
<
<=
>
>=
|
Less than
Less than or equal to
Greater than
Greater then or equal to
|
|
= =
! =
|
Equality
Inequality
|
Left to right
|
&
^
|
|
Bitwise and
Bitwise XOR
Bitwise or
|
Left to right
|
&&
| |
|
Logical AND
Logical OR
|
Left to right
|
? :
|
Conditional statement
|
Left to right
|
= += -= *=
/= %= >>=
<<= &= ~= | =
|
Assignment operators
|
Left to right
|
,
|
Comma
operator
|
Left
to right
|
c++ programming codes about strings
ReplyDeletecplusplus - String operation