Operators
Types of Operators
Arithmetic Operators
Assignment Operators
Comparison (Relational) Operators
Logical Operators
Bitwise Operators
Arithmetic Operators
Assignment Operators
Other assignment operators:
Operator
Description
<<=
Left shift and assign
>>=
Right shift and assign
&=
Bitwise AND assign
^=
Bitwise exclusive OR and assign
|=
Bitwise inclusive OR and assign
Comparison Operators
> greater than
< less than
>= greater than or equal to
<= less than or equal to
== is equal to
!= not equal to
Logical Operators
&& Logical AND
|| Logical OR
! Logical NOT
Bitwise Operators
& bitwise AND
| bitwise OR
^ bitwise NOT
&^ bit clear (AND NOT)
Other Operators
Operator
Name
Description
&
Address of
&a generates a pointer to a
*
Pointer to
*a denotes the variable pointed to by a
<-
Receive Operator
<-ch is the value received from channel ch
+=
String concat operator
Strings can be concatenated using + or += assignment operator
Last updated