|
(a) append x to A, without checking the size and capacity of A
(b) append x to A if there is room, and otherwise overwrites the currently last element of A
(c) append x to A if and only if the size of A is less than capacity of A
(d) check whether the capacity of A is larger than the size of A, enlarges A if necessary, and append x to A
|