1 get array item operator, 2 function-call operator, 3 expressions with unary operators – ElmoMC Multi-Axis Motion Controller-Maestro User Manual
Page 77: 1 unary plus operator (+), 2 unary minus operator (-), 3 logical not operator (!), Postfix expressions

5.4.1.2.1 Get Array Item Operator
A postfix-expression followed by the "get array" element operator [ ], specifies array
indexing.
5.4.1.2.2 Function-Call Operator
A postfix-expression followed by the function-call operator, ( ), specifies a function call.
The arguments to the function-call operator are zero or more expressions separated by
commas — the actual arguments to the function.
5.4.1.3 Expressions with Unary Operators
Unary operators act on only one operand in an expression. The unary operators are:
• Unary Plus Operator (+)
•
•
These operators have right-to-left associativity.
Syntax
unary-expression:
postfix-expression
++ name
–– name
unary-operator expression
unary-operator: one of the following
+ – !
5.4.1.3.1 Unary Plus Operator (+)
The result of the unary plus operator (+) is the value of its operand. The operand to
the unary plus operator must be of an arithmetic type.
Integer promotion is performed on integer operands. The resultant type is the type to
which the operand is promoted
5.4.1.3.2 Unary Minus Operator (-)
The unary minus operator (–) produces the negative of its operand. The operand to
the unary negation operator must be an arithmetic type.
5.4.1.3.3 Logical NOT Operator (!)
The result of the logical NOT operator (!) is 0 if its operand evaluates to a nonzero
value; the result is 1 only if the operand is equal to 0. The operand must be of
arithmetic or pointer type. The result is an int type.
For an expression e, the unary expression !e is equivalent to the expression
(e == 0).
Maestro
Software Manual
MAXL Program Language
MAN-MASSW (Ver. Q)
5-15