c# fixed length array code example
Example 1: c# how to write an array in a single line
// How to display an array on the same line:
string[] names = {"name1", "name2", "name3"}
Console.WriteLine("{0}", string.Join(", ", names));
Example 2: C# int array initial values
When you create an array, C# compiler implicitly initializes each array element to a default value depending on the array type. For example, for an int array all elements are initialized to 0.