So i have been reading about arrays , and they gave me the definition of an array element , but i still can't manage to understand what they are referring to
can someone give me simple example as to what it is .
int x[5] //this makes an array called "x" that holds 5 integers.
//basically it can hold 5 numbers like this:
x[1]=1;
x[2]=2;
x[3]=3;
x[4]=4;
x[5]=5;
//so now the array equals {1,2,3,4,5}
The array might start at zero and end at 5 or 4. I don't remember.
I have never heard that term used before, So I went and checked.
It looks like one 'thing' in the array is an element.
So in that example above: x[1] is an element, x[2] is an element, and so on.