how to add a new element to an existing array?
adding to an existing array
Collapse
X
-
If you feel the need to resize an array, better have a look at the ArrayListOriginally posted by oll3ihow to add a new element to an existing array?
Simple arrays cannot be resized, i.e. if you want to add more elements you
have to allocate another array (big enough) and copy everything from the old
to the new array.
kind regards,
Jos
Comment