Jump to content

Talk:Jagged array

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by TheTechnician27 (talk | contribs) at 16:24, 16 February 2023 (Assessed as Start-class, low importance.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
WikiProject iconComputer science Start‑class Low‑importance
WikiProject iconThis article is within the scope of WikiProject Computer science, a collaborative effort to improve the coverage of Computer science related articles on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
StartThis article has been rated as Start-class on Wikipedia's content assessment scale.
LowThis article has been rated as Low-importance on the project's importance scale.
Things you can help WikiProject Computer science with:

C# -Fault?

(I'm not a C# programmer, but this looks strange...) Article says:

int[][]c;
c=new int[2][]; // creates 2 rows
c[]=new int[5]; // 5 columns for row 0
c[1]=new int[3]; // create 3 columns for row 1

We really don't need to assign the first sub-array to index 0 ?

int[][]c;
c=new int[2][]; // creates 2 rows
c[0]=new int[5]; // 5 columns for row 0
c[1]=new int[3]; // create 3 columns for row 1

Or are both ways possible?

--Arilou (talk) 14:01, 1 April 2015 (UTC)[reply]


Is there a name for non jagged arrays? Should be mentioned if it exist. — Preceding unsigned comment added by 212.34.68.211 (talk) 08:55, 1 August 2016 (UTC)[reply]

What's the opposite?

What is the opposite of a jagged array? Can we add a reference to this to this article? --132.252.208.4 (talk) 09:26, 6 June 2022 (UTC)[reply]