Grokking Go
0% completed
Arithmetic operators
Arithmetic operators are used to perform mathematical calculations such as addition, subtraction, multiplication, and division. These operators work with numeric data types, including integers and floating-point numbers.
List of Arithmetic Operators in Go
Go provides the following arithmetic operators:
Note: Go supports
++and--only as statements, such asx++on its own line. Unlike some other languages, they are not expressions, so you cannot writey := x++orfmt.Println(x++).
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%