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); } }
decimal d = -1.23M; // Will not compile without the M suffix.
because -1.23 would be inferred to be of type double
decimal d = -1.23M; // Will not compile without the M suffix.