Example of Jagged Array in .Net : Variable Length Array in .Net
int [][] myTable = new int[3][];
myTable[0] = new int[5];
myTable[1] = new int[2];
myTable[2] = new int[4];
myTable[0][2] = 11;
Collections and arrays in .net. Here you find discussion on arrays, arraylist, stack, queue, dictionaries, hashtable, sortedlist, string and stringbuilder, etc.
For .Net Articles, Links, Code and much more logon to DailyFreeCode.com
int [][] myTable = new int[3][];
myTable[0] = new int[5];
myTable[1] = new int[2];
myTable[2] = new int[4];
myTable[0][2] = 11;
1 comment:
Thanks.Did you know that array is initially declared using either the Dim statement or the Redim statement?
Post a Comment