Introduction to Arrays

Get introduced to arrays.

What is an array?

In the lesson on variables, we saw that a variable is just like a cabinet that can store one item only. To store the item in the cabinet, we must decide its type (analogous to data type) and put a unique label on it (analogous to variable name).

If we have to store a lot of items of the same type, putting a label on each cabinet is quite a tedious task. Instead, we can just store the items of the ...