Hi all:
Is it possible to store an integer array to another integer array?
Or should I use an array of pointers that will point to a particular
array?
You can always copy array elements using a loop with an assignment
statement as long as each from_element processed by the loop has be
assigned or initialized with a value.
If you are referring to one dimensional arrays, then memcpy will copy
data from one array to another as long as the number of bytes you
specify is not larger than the size of either array. This may or may
not be "better" than using a loop with an assignment statement.
If the arrays are multi-dimensional with identical dimensions, memcpy
will still work.
If the arrays are multi-dimensional with different dimensions, memcpy
can still be used but there may be some "boundary" issues.
Remove del for email