![]() ![]() | introductory-examples/simple-types/ex.cs - Demonstration of the simple type bool in C#. | Lecture 0 - slide 6 : 25 Program 1 |
public static void BoolDemo(){ bool b1, b2; b1 = true; b2 = default(bool); if (b1 == b2) Console.WriteLine("The default boolean value is true"); else Console.WriteLine("The default boolean value is false"); }