Skip to content

Instantly share code, notes, and snippets.

@chris001177
Created January 13, 2020 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chris001177/40afb4bd5987e5b596a49db7f8818a1b to your computer and use it in GitHub Desktop.
Save chris001177/40afb4bd5987e5b596a49db7f8818a1b to your computer and use it in GitHub Desktop.

Arithmetic

Operator Description
+ addition
- subtraction
* multiplication
/ quotient
% remainder
& bitwise and
| bitwise or
^ bitwise xor
&^ bit clear (and not)
<< left shift
>> right shift

Comparison

Operator Description
== equal
!= not equal
< less than
<= less than or equal
> greater than
>= greater than or equal

Logical

Operator Description
&& logical and
|| logical or
! logical not

Other

Operator Description
& address of / create pointer
* dereference pointer
<- send / receive operator (see 'Channels' below)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment