What is the correct way to copy an array to another array in C++? Currently, I am just saying: array1=array2;

I have a feeling there is a problem with this, because there are some compilers which are complaining and some which aren't. Is the correct way just to run a for loop and copy each value one by one?

Thanks, appreciate it.
Nimit