Hey,
I have a function that returns an array that contains all the digits of a number
If i want to make an array that I have in my main function to be the same as the arrayOfDigits that is in this function what do i have to do?Code:int seperation(int number){ int arrayOfDigits[SIZE]; int i = SIZE - 1; int lastDigit; while(number!=0){ lastDigit = number % 10; arrayOfDigits[i] = lastDigit; i--; number /= 10; } return(arrayOfDigits);