Is there a way to determine the last element in an array?
i.e.
Code:
new array[5]
array[0] = 12
array[1] = 9
array[2] = 10
array[3] = 4
new index = getLastIndex(array)
What would i use to determine what is in the last slot of the array? Or what the last filled index is?
like an EOS for cells.
* preferably without looping through it
__________________
What an elegant solution to a problem that doesn't need solving....