0
What is mean by array?? Plzzz give a easy and short answer
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?
0
array is collection same elements (same data type)
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