boolean arrays c# code example
Example: 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);
}
}
}