Arrays, an in depth explanation

So, what are Arrays?
Arrays are lists of variables that can hold certain data in them. These when declared reserve a certain amount of space in the RAM so you can store the data in them.

Why are Arrays useful?
Let’s say that you want the user to input 10 different names or integers or whatever. For sure you are too lazy, and it’s inefficient to make 10 DIFFERENT variables to store that data, so look at the bright side… this is an advantage of being lazy, of course you won’t do it, but you still need to store that data, so that is when Arrays come in, you just declare ONE list and you will have 10 different slots to insert the data in.

[Read Full Post]

Interesting Posts

Leave a Reply