Multi-Dimensional Arrays

By Raul Rios

Multi-Dimensional arrays are arrays whose elements are themselves arrays. The same as One-Dimensional arrays there are different ways of declaring them. Only one of these ways is the preferred way, but for the purpose of the exam you must know all the valid ways. Let’s see them with some examples:

Once you ..Continue Reading

One-Dimensional Arrays

By Raul Rios

The basic way to declare an array is:

That’s always the preferred way but you can also put the brackets at the end (it’s syntactically valid but discouraged):

Be careful when there’s a multiple variable declaration in a single line, because the data type of the variables will be different ..Continue Reading