Parentheses ( )
- Last UpdatedJul 13, 2023
- 1 minute read
Parentheses specify the correct order of evaluation for the operator(s). They can also make a complex expression easier to read. Operator(s) in parentheses are evaluated first, preempting the other rules of precedence that apply in the absence of parentheses. If the precedence is in question or needs to be overridden, use parentheses.
In the example below, parentheses add B and C together before multiplying by D:
( B + C ) * D;