Unary operators (The GNU Fortran Compiler) (original) (raw)
Next: Implicitly convert LOGICAL and INTEGER values, Previous: Real array indices, Up: Extensions implemented in GNU Fortran [Contents][Index]
5.1.12 Unary operators ¶
As an extension, GNU Fortran allows unary plus and unary minus operators to appear as the second operand of binary arithmetic operators without the need for parenthesis.
X = Y * -Z