Equinox Online Help - Language Reference - A to Z
ArrayNeg |
|
---|---|
Applies to | |
Syntax | ArrayNeg ArrayExpression |
Action | Reverses the sign of each element in an array expression. |
Scope | Usable Anywhere |
Notes | This statement performs the operation a[n] = -a[n] on each element in the array expression. |
Category | Arrays |
See Also | ArrayFind, ArrayFindNext, ArrayGetDimensions, ArraySearch, ArraySearchNext, ArraySetDimensions, ArraySort, ArrayNot, Vector, VectorSize |
Example | This example prints -1 -2 3 int a[] |