CSharp - What is the output: decimal suffix?

Question

What is the output of the following code?

using System;
class MainClass
{
   public static void Main(string[] args)
   {
       decimal d = -1.23;     
       Console.WriteLine(d);

   }
}


Click to view the answer

decimal d = -1.23M;     // Will not compile without the M suffix.

Note

because -1.23 would be inferred to be of type double

decimal d = -1.23M;     // Will not compile without the M suffix.