C Sharp (C#) - Exception Handling
Consider this code:
What will be printed and why?
int result = 0;
try {
result = 10 / 0;
} catch (DivideByZeroException) {
result = 1;
} finally {
result = 2;
}
Console.WriteLine(result);What will be printed and why?
