Unlike other operators, the increment and decrement operators act on only one operand. They are hence called Unary operators.
They can be used either before or after a variable as in:
a++; b--; OR ++a; --b;
Read the section again, if you’ve not understood this concept.
Take a look at the following code… what do you think will be the value of variable res?
var res = 25 + 100 * 4;
There are two ways to look at this
res = 25 + (100 * 4); res = 425 OR res = (25 + 100) * 4; res = 500
Searching "241543903" (without the quotes) in Google Image Search results in pics of people putting their heads in refrigerators! This is because of a meme started by an American artist, David Horvitz. [more...]