Functional Programming, Csharp, Programming.
static int Divide(int a, int b) { return a / b; } } If you call it this way: Math.Divide(2, 0); It will throw DivideByZeroException. The question asks itself. Why this function has a side effect?: a) it does not affect anything outside its scope b) the result is expected The answer is as follows: