What is the best way to split an array(mainArr) that holds 50 random integers into 5 different arrays that all contain 10 of the integers in each?
For example arr1 holds mainArr's 0-9 values, arr2 holds 10-19....
I have searched around but everything is splitting the array into two different arrays. Any help would be appreciated. Thanks.
int *arr1 = mainArr, *arr2 = mainArr + 10, ...