Multiple choice

Identify the output of the code given below:

using System;
class Program {
static void Main(string[] args) {
    long[] numbers = {10.5, 3.52, 4.3456, 100.43, 3.4 };
    Console.Write(numbers[1]);
    Console.ReadLine();
   }
}

  1. 10.5

  2. 3.52

  3. 0

  4. It will not compile.

  5. Null

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

It will not compile as it cannot implicitly convert the double values into long data type.