In C# and Java5 jagged arrays can be created with the following code:6
In C and C++, a jagged array can be created (on the stack) using the following code:
In C/C++, jagged arrays can also be created (on the heap) with an array of pointers:
In C++/CLI, jagged array can be created with the code:7
In Fortran, a jagged array can be created using derived types with allocatable component(s):
In Python, jagged arrays are not native but one can use list comprehensions to create a multi-dimensional list which supports any dimensional matrix:8
King, K. N. (2008). C Programming. W. W. Norton. p. 301. ISBN 978-0-393-97950-3. 978-0-393-97950-3 ↩
Handbook of Data Structures and Applications. CRC Press. 2004. ↩
Jesse Liberty; Brian MacDonald (18 November 2008). Learning C# 3.0. "O'Reilly Media, Inc.". pp. 210–. ISBN 978-0-596-55420-0. 978-0-596-55420-0 ↩
Don Box (2002). Essential .Net: The Common Language Runtime. Addison-Wesley Professional. p. 138. ISBN 978-0-201-73411-9. 978-0-201-73411-9 ↩
"Jagged Array in Java - GeeksforGeeks". GeeksforGeeks. 2016-02-03. Retrieved 2018-08-13. https://www.geeksforgeeks.org/jagged-array-in-java/ ↩
Paul J. Deitel; Harvey M. Deitel (26 September 2008). C# 2008 for Programmers. Pearson Education. p. 40. ISBN 978-0-13-701188-9. 978-0-13-701188-9 ↩
"Jagged Arrays". FunctionX. Retrieved 26 November 2014. http://www.functionx.com/cppcli/arrays/jagged.htm ↩
"Lists in Python Demystified". Alvin.io. Retrieved 31 January 2016. http://alvin.io/lists-in-python-demystified-part-2/ ↩