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

Unary Operators

Unary Operators

Unary Operators are a feature.

Operators with arity 1.

Languages with Unary Operators include C++, Jule

Example from C++:
int count = 2; count++; ++count; count--; --count; &count; // address *count; // indirection +count; // Positive -count; // negative ~count; // one's complement !x; // logical negation sizeof count; sizeof(int); (float)count;
Example from Jule:
* & - + ^ !
type-parameters-feature.html 路 unary-operators-feature.html 路 units-of-measure-feature.html

View source

PLDB - Build the next great programming language 路 v2022 Day 33 Docs Build Acknowledgements Traffic Today Traffic Trends Mirrors GitHub