7/3 // evaluates to 2
7/3.0F // evaluates to 2.333333f
7/0 // causes an error
7 % 3 = 1
4.3 % 2.1 = 0.1
Q = x/y R = x - (Q * y)
x = 5 y = 2 Q = 5/2 = 2 //quotient R = 5 - (2 * 2) = 1 //remainder
i = 1;
j = ++i; //both j and i are set to 2 after this statement executed.
i = 1;
j = i++; //j equals 1 and i equals 2 after this statement executed.
x < 10 || y > 15
p > 0 && p < 10
( ! ( x > y && y < z ) ) // if there were no parenthesis the ! would match with the x, instead of the whole expression.
a += b; //is the same as a = a + b;
x /= y; //is the same as x = x / y;