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:
Basic | Visual Basic .NET | FreeBASIC | C | C++ | Visual C++ .NET | C# | Java | JavaScript | Object Pascal | Pascal | Free Pascal | PHP

Examples

Example

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

Example

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

Example

Other pieces of example codes:
!(10 >a || a<5)
(100 + i +8  ) +2
(x / 5) * 10
(2.5 / 2 + 1.25) + 2
(x << y) << 2
(x >> 2) >> 2
Languages: en hu cz sk