58 - Array Members
-
length
: returns number of elements in array -
push()
: appends a zero-initialised element at the end of the array and returns a reference to the element -
push(x)
: appends a given element at the end of the array and returns nothing -
pop
: removes an element from the end of the array and implicitly calls delete on the removed element
length
,push
,push(x)
,pop
length
-> Number of Elementspush
-> Zero Element @ Endpush(x)
-> x @ Endpop
-> Remove Element @ End- Security: Length & Off-by-one, push/pop Semantics