C++ - parenthesis operator: ( )

we can use parentheses to change the order of expression evaluation, in other words, we can override operator precedence.

( )

Description

( expression )

Input


Output

compatible programing languages:
Visual C++ .NET

Examples

C++

parenthesis operator the possible of use:
x = 90 % 8;    // x = 2
y = 15 % 4;    // y = 3
z = (x % y) %5;// z = 2

C++

even one example in what situations we can use the operation parenthesis operator:
i * 0xFF
10 * 3.14
(10 - j * 0.5) * 2

C++

Other pieces of example codes:
(x-y)-30.5
(x << y) << 2
2 & (i & 4)
z = (x * 2 / y +5)
(j + 8) >= 3
-(1500 % 60)
Languages: en hu cz sk