I want to copy an int array to another int array. They use the same define for length so they\'ll always be of the same length.
What are the pros/cons of the followi
Will the second option always work? Regardless of the content?
The 2nd option works only if you added back the missing ) and dst is a static array (i.e. of type int[123]).
If dst has unknown size (i.e. int[]), then sizeof dst only returns the pointer size, since dst has been decayed to a pointer. In this case, you need to use sizeof(*dst)*ARRAY_LENGTH.