1.

What will be the output of the given code snippet? class Program { static void Main(string[] args) { int x, y = 1; x = 10; if(x != 10 && x / Convert.ToInt32(0) == 0) Console.WriteLine(y); else Console.WriteLine(++y); Console.ReadLine(); } }

A. 1
B. 2
C. Run time error
D. Compile time error
Answer» C. Run time error


Discussion

No Comment Found