C# clone

    [C#] 배열 기본

    [C#] 배열 기본

    1. 핵심 정리 using System; class Program { int[] arr1; int[] arr2 = new int[5]; int[] arr3 = new int[5] {1, 2, 3, 4, 5}; int[] arr4 = new int[] {1, 2, 3, 4, 5}; int[] arr5 = {1, 2, 3, 4, 5}; Type t = arr5.GetType(); Console.WriteLine(t.FullName); Console.WriteLine(arr5.Length); // 5 Console.WriteLine(arr5.GetLength(0)); // 5 Console.WriteLine(arr5.GetValue(3)); // 4 Console.WriteLine(arr5.GetLowerBo..