Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#include
#include
using namespace std; int main() { int myNumbers[5] = {10, 20, 30, 40, 50}; int myCopy[5]; memcpy(myCopy, myNumbers, sizeof(myNumbers)); for (int i = 0; i < 5; i++) { cout << myNumbers[i] << " " << myCopy[i] << "\n"; } return 0; }
10 10
20 20
30 30
40 40
50 50