Qual è il risultato stampato dal seguente programma C#?
static String str;
static DateTime time;
static void Main(string[] args)
{
Console.WriteLine(str == null ? "str == null" : str);
Console.WriteLine(time == null ? "time == null" : time.ToString());
Console.ReadLine();
}


L’oggetto di tipo DateTime va prima istanziato, altrimenti dà errore e nemmeno compila
DateTime è un tipo valore 😉