0

Wts a jagged array ?how is it declared in C#

21st Jul 2018, 11:49 AM
yogita nataraj
yogita nataraj - avatar
4 Antworten
+ 4
a jagged array is an array of arrays and it's declaration is as follows: (type)[][] a = new (type)[][]; where (type) is to be replaced by the type you wish to use. also keep in mind that each sub-array has to be initialized.
21st Jul 2018, 11:54 AM
hinanawi
hinanawi - avatar
0
can you elaborate please
21st Jul 2018, 11:54 AM
yogita nataraj
yogita nataraj - avatar
21st Jul 2018, 11:57 AM
hinanawi
hinanawi - avatar
0
thanks
21st Jul 2018, 11:59 AM
yogita nataraj
yogita nataraj - avatar