When you create an array in C# using something like new int[10], its contents are automatically initialized to '0' (or 'null' if it is new string[10]). However, depending on the program requirements, ...
There are the following patterns for array initialization in C#.Since I'm used to C and C++, I'm a bit confused. // パターン1 int[] array = new int[5]; // パターン2 int[] array = new[]{ 0, 0, 0, 0, 0 }; // ...