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