Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Most integer operations can result in overflow if the resulting value cannot be represented by the underlying representation of the integer. The following table indicates which operators can result in overflow:

Operator

Overflow

+

yes

-

yes

*

yes

/

yes

%

yes

++

yes

-

yes

=

no

+=

yes

-=

yes

*=

yes

/=

yes

%=

yes

<<

yes

>>=

yes

&=

no

\=

no

^=

no

<<

yes

>>

yes

&

no

|

no

^

no

~

no

!

no

un +

no

un -

yes

...