Device Monitoring Studio - Monitor, log and analyze data coming through PC ports and connections
Download Device Monitoring Studio Hide this button

() Expression Grouping Operator

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.