41
What will be the output of the following C# code snippet?
{
try
{
int a, b;
b = 0;
a = 10 / b;
Console.WriteLine("A");
}
catch(ArithmeticException e)
{
Console.WriteLine("B");
}
Console.ReadLine();
} Answer & Solution
Answer: Option
B
No explanation is given for this question. Let's Discuss on Board