Arithmetic operator discrepancies
For similar languages or simple polyglots, sometimes it's useful to look for differences in how the languages perform arithmetic. This is because most (non-esoteric) languages have infix arithmetic operators and arithmetic can be a quick and easy way to introduce a difference.
For example:
^is bitwise XOR in some languages and exponentiation in others/is integer division in some languages and floating point division in others- For the integer division languages,
-1/2is-1in some languages (round down) and0in others (round to zero)
- For the integer division languages,
-1%2is-1in some languages and1in others--xis a no-op in some languages (double negation) and pre-decrement in others1/0gives infinity in some languages and errors out in others1<<64gives 0 in some languages (overflow) and36893488147419103232in others