Common operator notation: Difference between revisions

Content deleted Content added
mNo edit summary
m Robot-assisted disambiguation (you can help!): C programming language
Line 57:
prefix operators '+', '-', and 'sin', for example, are all
associative prefix operators. The unary postfix operator '!' and,
in the [[C (programming language)|C]] language, the post-increment and post-decrement operators
"++" and "--" are examples of associative postfix operators. When
more than one associative prefix or postfix operator of equal
precedence precedes or succeeds an operand, the operators closer to
the operand associate first. For example, -sin x = -(sin(x)) and, in [[C (programming language)|C]],
the expression "x++--" is equivalent to "(x++)--". When prefix and postfix operators of equal precedence coexist,
the order of association is undefined.
Line 77:
# Among operators of equal precedence, associate operands with operators according to the associativity of the operators.
 
Note that an infix operator need not be binary. [[C (programming language)|C]], for example, has a ternary infix operator "[[?:]]". <!-- speculation Would
it, then, be accurate to call parenthisization an n-ary bifix
operation? :) -->