using System; namespace CuriousTabConsoleApplication { class MyProgram { static void Main(string[] args) { int index = 6; int val = 44; int[] a = new int[5]; try { a[index] = val ; } catch(IndexOutOfRangeException e) { Console.Write("Index out of bounds "); } Console.Write("Remaining program"); } } }
class Sample { public int func(int i, Single j) { /* Add code here. */ } }
Comments
There are no comments.Copyright ©CuriousTab. All rights reserved.