Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi I have this kind of array (string[,] rptarray = new string[rptcnt, 6];) and i dont really understand how it works "string[,]"
Does any one have a clue why it was defined in this manner and how does it work?
Posted

1 solution

If you not put ',' it's treated as a Single dimensional array
Go through this link
http://stackoverflow.com/questions/3814145/how-can-i-declare-a-two-dimensional-string-array-in-c[^]
Hope this helps
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900