How could I do the following:
I set the array size and contents in somefunc() and the return the array to the main.Code:int[] somefunc(); int main(void){ int i; int array = somefunc(); for(i=0; i<10; i++) printf("%d\n", array[i]); } int[] somefunc() { int size = 10, i; int array[size]; for(i=0; i<size; i++) array[i] = i; return array; }