+ 2
Arrays
can someone pls explain arrays in layman's terms 4 me
1 Réponse
+ 3
so here I'll explain you in very simple lay man language .
array is actually a collection of different numbers ,string or characterers . These are mainly considered of 3 types :-
one dimension array , two dimension array and multidimensional array .
These are represented as :-
// Single dimension
arr[]={1,2,3,4};
or
arr[]={'a','b','c','d'}
or even a string
//Two dimension array
arr[][]={{1,2,3,4},{2,3,4,5}}
or you can enter even a string or character
//multidimensional array
arr[][][]={{1,2,3,4},{2,3,4,5},{3,4,5,6}}
and the values can take any value like string or character .
to know how are these used see my post .
https://www.sololearn.com/discuss/494416/?ref=app