arrays

sam dhillon (6)
I really need help with arrays. Can anyone help me!!!!!!!!!!!!!!!!!
L B (3805)
You have an entire forum ready to help you understand arrays.

What are you having trouble understanding?
Lying Cataract (6)
It's an abstraction of data stored in a sequence.

Instead of a single data type with a single value, an array is a sequence of values that you can index through for whatever reasons, all within one identifier of those values.

For example, a non-array integer can be understood like this:

INTEGER CAT = 1 < -- Numeric integer data type.

And an array like this:

INTEGER CAT = [10] < -- Ten indices within the same data type indentifier "CAT".

You can set a value for each index of the array in sequence, and iterate through them, etc. They can be used pretty much like any non-array.

INTEGER CAT [1] = 1

INTEGER CAT [2] = 2

INTEGER CAT [3] = 3

And so on....
Last edited on
Oria (71)
int is a number...

int array is a whole bunch of numbers...
Lachlan Easton (68)
An array is like a box of chocolates.
maeriden (339)
I wish I could new[] chocolates with the same effort.
Registered users can post here. Sign in or register to post.