I want to copy arr into brr so that brr is an exact copy of arr. I think that the main issue is that I am not calculating it right and % 100. How would I do this?
#include <stdio.h>
#include <string.h> // for using memcpy (library function)
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <iostream>
using namespace std;
int main() {
int arr[10];
int array[10];
srand((unsigned)time(0));
for (int i = 0; i < 10; i++) {
array[i] = (rand() % 10) + 1;
cout << array[i] << endl;
}
int brr[10];
}