PLDB
Languages Features Calendar About Lists Add Language
GitHub icon

Increment and decrement operators

Increment and decrement operators

Increment and decrement operators are a language feature.

Increment and decrement operators are unary operators that add or subtract one, to or from their operand, respectively. They are commonly implemented in imperative programming languages. C-like languages feature two versions (pre- and post-) of each operator with slightly different semantics. Read more on Wikipedia...

Languages with Increment and decrement operators include Java, JavaScript, C, PHP, Go

Example from JavaScript:

let i = 0 i++ i--

Example from Go:

i := 0 i++ i--

Article source

PLDB - Build the next great programming language 路 v2022 Docs Acknowledgements Email GitHub