Answers for "c# array bool"

C#
0

c# array bool

using System;

public class Demo {
   public static void Main() {
      bool[] arr = new bool[5];
      arr[0] = true;
      arr[1] = true;
      arr[2] = false;
      arr[3] = true;
      arr[4] = true;
      Console.WriteLine("Displaying values...");

      foreach (bool res in arr) {
         Console.WriteLine(res);
      }
   }
}
Posted by: Guest on November-12-2020

C# Answers by Framework

Browse Popular Code Answers by Language