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;

1 comment:

Unknown said...

Thanks.Did you know that array is initially declared using either the Dim statement or the Redim statement?

Most Recent Post

Most Recent Ado.net FAQ

Most Recent .Net Framework FAQ

Most Recent Configuration Files FAQ

Daily Quote, Inspiration, Motivation and More

Subscribe Blog via Email

Enter your email address: