Grokking Go
Vote

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 as x++ on its own line. Unlike some other languages, they are not expressions, so you cannot write y := x++ or fmt.Println(x++).

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content