What is mean by array?? Plzzz give a easy and short answer | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is mean by array?? Plzzz give a easy and short answer

7th Feb 2017, 4:10 PM
satheesh
3 Answers
+ 1
you have 100 variables. you have to change them all: OPTION ONE you can write 100 times the code to change a variable total 100 lines of code OPTION TWO define an array of hundred variables change them in 3 lines of code with a for looping through the array. Total 4 lines of code What would you chose?
7th Feb 2017, 5:17 PM
seamiki
seamiki - avatar
0
array is collection same elements (same data type)
7th Feb 2017, 4:27 PM
vijay
vijay - avatar
0
imagine a tabel with N colums and just one Row -> this is basical a one dimensional array. You can address each element with a unice index beginnig with Zero ending with N. a tabel with N colums an M Rows would be a two dimensional Array with the size NXM hope i could help you
7th Feb 2017, 4:34 PM
Kilian Erben
Kilian Erben - avatar