string[] str = new string[5]; try { str[4] = "anything"; } catch (Exception e) { Console.WriteLine(e.Message); } catch (IndexOutOfRangeException e) { Console.WriteLine(e.Message); }
Login in to like
Login in to comment
or Read more about C# Quizzes
Login in to like
Login in to comment