+ 2

I'm feeling difficulty in understand of c# arrays concept

help me out

26th May 2017, 12:57 PM
Bhargavi AG
Bhargavi AG - avatar
6 Antworten
+ 3
https://www.sololearn.com/Discuss/341028/help-me-in-understanding-arrays-in-c Take a look at the explanation of arrays, and if you'd like a bonus explanation of multidimentional arrays.
26th May 2017, 3:22 PM
Rrestoring faith
Rrestoring faith - avatar
+ 2
Arrays in c# work the exact same way. The only difference is syntax for adding dimentions. int[, ,] array = new int[2 , 7] Is a 2d array, first array of size 2, others of size 7. So, in c# the comma "," is used to indicate dimension of the array.
27th May 2017, 4:24 PM
Rrestoring faith
Rrestoring faith - avatar
+ 1
I understood arrays in both C and Cpp but C# arrays are little confusing
27th May 2017, 2:59 PM
Bhargavi AG
Bhargavi AG - avatar
+ 1
can you give an example that you dont understand?
27th May 2017, 3:30 PM
Loai Hazima
Loai Hazima - avatar
+ 1
yaa here int[, , ,] means we are declaring 3 Dimensional array but size we are giving only 2 numbers int[2,7] how does it works
28th May 2017, 11:12 AM
Bhargavi AG
Bhargavi AG - avatar
0
you mean you don't understand what is arrays ?
26th May 2017, 1:53 PM
Loai Hazima
Loai Hazima - avatar