Visual 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

Examples

Visual C++ .NET

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

Visual C++ .NET

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

Visual C++ .NET

Other pieces of example codes:
(int)(x * y)
(i & j) != 64
(j + 10) <= 128
(i & j) < 128
(j - 8) == 5.123
(unsigned short)(x * y)
Languages: en hu cz sk