This is just a basic sum method.
public int Sum(int a, int b)
{
return a + b;
}
If I call the function as below
int result = Sum(int.MaxValue, int.MaxValue);
Why am I gettin ‘-2’ in the result variable even though there is an overflow. Shouldn't I get a stackoverflow exception?