Languages Features Calendar About Lists Add Language
GitHub icon

Unary Operators

Unary Operators

Unary Operators are a language feature.

Operators with arity 1.

Languages with Unary Operators include C++

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;

Article source

PLDB - Build the next great programming language. v5.0.0 - Acknowledgements · Email · GitHub