P
E
M
D
A
S
Parentheses
Exponents
Multiplication
Division
Addition
Subtraction
Parenthesis: ( )
Prefix: ++x --x -x
Postfix: x++ x--
Multiplicative: * / %
Additive: + -
Assignment: = += -= ...
int x = 1;
int y = ++x + x - x / x * x % x--;
int x = 1;
int y = ++x + x - x / x * x % x--;
int x = 1;
int y = ++x + x - x / x * x % x--;
x: 1
int x = 1;
int y = ++x + x - x / x * x % x--;
x: 1
int x = 1;
int y = ++x + x - x / x * x % x--;
x: 1
int x = 1;
int y = ++x + x - x / x * x % x--;
x: 1 2
int x = 1;
int y = x + x - x / x * x % x--;
x: 2
int x = 1;
int y = x + x - x / x * x % x--;
x: 2
int x = 1;
int y = x + x - x / x * x % x--;
x = x - 1
x: 2
int x = 1;
int y = x + x - x / x * x % x;
x = x - 1
x: 2
int x = 1;
int y = x + x - x / x * x % x;
x = x - 1
x: 2
int x = 1;
int y = x + x - x / x * x % x;
x = x - 1
x: 2
int x = 1;
int y = x + x - 2 / 2 * x % x;
x = x - 1
x: 2
int x = 1;
int y = x + x - 1 * x % x;
x = x - 1
x: 2
int x = 1;
int y = x + x - 1 * x % x;
x = x - 1
x: 2
int x = 1;
int y = x + x - 1 * 2 % x;
x = x - 1
x: 2
int x = 1;
int y = x + x - 2 % x;
x = x - 1
x: 2
int x = 1;
int y = x + x - 2 % x;
x = x - 1
x: 2
int x = 1;
int y = x + x - 2 % 2;
x = x - 1
x: 2
int x = 1;
int y = x + x - 0;
x = x - 1
x: 2
int x = 1;
int y = x + x - 0;
x = x - 1
x: 2
int x = 1;
int y = 2 + 2 - 0;
x = x - 1
x: 2
int x = 1;
int y = 4 - 0;
x = x - 1
x: 2
int x = 1;
int y = 4 - 0;
x = x - 1
x: 2
int x = 1;
int y = 4;
x = x - 1
x: 2
int x = 1;
int y = 4;
x = x - 1
x: 2
int x = 1;
int y = 4;
x = x - 1
x: 2
y: 4
int x = 1;
int y = 4;
x = x - 1
x: 2
y: 4
int x = 1;
int y = 4;
x = x - 1
x: 2 1
y: 4
int x = 1;
int y = 4;
x = x - 1
x: 1
y: 4