An array expression that contains prefix operators results in an array with identical bounds, with each element reflecting the result of the operation performed on the original element. For example:
Array A before operation | Operation | Array A after operation | ||||
---|---|---|---|---|---|---|
1 | 2 | -3 | -A | -1 | -2 | 3 |
4 | 5 | 6 | -4 | -5 | -6 | |
7 | 8 | -9 | -7 | -8 | 9 |