O'Reilly logo

C# 5.0 Unleashed by Bart De Smet

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Arity of Operators

Operators have an arity, indicating the number of operands on which they operate. For example, negating an integer value takes just one operand and is said to be a unary operator. Other operations, such as addition or Boolean conjunction, require two operands and are therefore classified as binary operators. The maximum number of operands in any operator in the C# language is three, making those operators ternary operators.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required