+ 2

Default Values for Uninitialized Variables: How Will You Know Beforehand?

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Drawing; namespace SoloLearn { class Program { static Point point1; static Pen pen1; static void Main(string[] args) { Console.WriteLine(pen1 == null); // True Console.WriteLine(point1 == null); // False (?) } } }

21st Feb 2017, 10:17 PM
RafaMachadoAlves
RafaMachadoAlves - avatar
1 Réponse
21st Feb 2017, 10:21 PM
RafaMachadoAlves
RafaMachadoAlves - avatar