Examveda

What is the correct way to declare and initialize a jagged array in C#?

A. int[][] jaggedArray = new int[3][];

B. int[][] jaggedArray = new int[][];

C. int[][] jaggedArray = new int[3][3];

D. jaggedArray[][] = new int[3][];

Answer: Option A


Join The Discussion

Related Questions on Arrays and Strings in C Sharp