I came by this piece of code and I'm not sure what is exactly happening. It's as follows:
int twod [] [] = new int[4][];// i know the first one is row
twod [0] = new int[1];//
twod [1] = new int[2];// What are these?
twod [2] = new int[3];//
twod [3] = new int[4];//
What are the last 4 lines doing?
What you posted didn't compile for me. I think this is what you want for jagged arrays.
Results (In debug):