Operator precedence
An important aspect of operators, and a common source of bugs for novice programmers, is operator precedence. In other words, which operation gets to go first, and which last? Fortran has a few simple rules for arithmetic operator precedence: Comparison operators don’t suffer from precedence ambiguity because they operate on numeric or character values, and […]