| Start |
|---|
| Integer overflow There is a maximum capacity an integer can store. And when you go over that limit, it will loop back to the negative side. For For any integers out of this range use namespace System.Numerics which has datatype BigInteger. Check below link for more information https://msdn.microsoft.com/en-us/library/system.numerics.biginteger(v=vs.110).aspx (opens new window) |
| Overflow during operation Overflow also happens during the operation. In the following example, x is an You can prevent that by using 1L. Now 1 will be a |
| Ordering matters There is overflow in the following code Whereas in the following code there is no overflow This is due to the left-to-right ordering of the operations. In the first code fragment |
Read Article
https://develop.horje.com/learn/1434/reference