MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the given code snippet? class program { public static void Main(string[] args) { try { int a = args.Length; int b = 1 / a; Console.WriteLine(a); } catch (ArithmeticException e) { Console.WriteLine("1"); } Console.ReadLine(); } } |
| A. | 0 |
| B. | 1 |
| C. | Compile time error |
| D. | Runtime error |
| Answer» C. Compile time error | |