Expression grouping operator allows you to change the precedence rules of operators in an expression.
Syntax:
(exp)
The following code fragment illustrates the use of the expression grouping operator:
2 + 3 * 4 - 7 // evaluates to 7
2 + 3 * (4 - 7) // evaluates to -7
You can use parenthesis whenever you need to change the precedence of operators or increase the readability of the expression.