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;
int *fillarr(int arr[])
You can still use the result like
int *returned_array = fillarr(some_other_array); if(returned_array[0] == 3) do_important_cool_stuff();