Precedence of Operators in Swift
Operator Precedence:
The operators in arithmetic expressions are applied in a precise sequence determined by the rules of operator precedence which are generally the same as those in algebra:
1. Multiplication, division and remainder operations are applied first. If an expression contains several such operations, they’re applied from left to right. Multiplication, division and remainder operators have the same level of precedence.
2. Addition and subtraction operations are applied next. if an expression contains several such operations, the operators are applied from left to right. Addition and subtraction operators have the same level of precedence.