PLDB
Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon

Increment and decrement operators

Increment and decrement operators

Increment and decrement operators are a 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 without Increment and decrement operators include Slope

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--
monads-feature.html 路 increment-and-decrement-operators-feature.html 路 symbol-table-feature.html

View source

PLDB - Build the next great programming language 路 v2022 Day 33 Docs Build Acknowledgements Traffic Today Traffic Trends Mirrors GitHub feedback@pldb.com