Examveda

What will be the output of the following C# code?
public static void Main(string[] args)
{
    double ZERO = 0;
    Console.WriteLine("RESULT OF DIVISION BY ZERO IS :{0}",  (0 / ZERO));
    Console.ReadLine();
}

A. 1

B. exception argument is thrown

C. NaN

D. 0

Answer: Option C


Join The Discussion

Related Questions on Basic Syntax and Data Types in C Sharp