static void Main(string[] args) { string[] arr = new string[4]; arr[0] = "Hemanth"; arr[1] = "Anil"; arr[2] = "Raja"; arr[3] = "Somu"; for (int i = 0; i <= arr.Length; i++) { string element = arr[i]; Console.WriteLine(element); } Console.ReadLine(); }
3
i <= arr.Length
i
i < arr.Length
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)