I have an array int arr[5] that is passed to a function fillarr(int arr[]):
int arr[5]
fillarr(int arr[])
int fillarr(int arr[]) { for(...); return arr;
the Simplest way to do this ,is to return it by reference , even if you don't write the '&' symbol , it is automatically returned by reference
void fillarr(int arr[5]) { for(...); }