Non funziona perchè c è locale e quindi nel momento in cui esco dalla funzione c smette di esistere?codice:int* fusione (int a[], int m, int b[], int n){ int i = 0; int j = 0; int k = 0; int c[10]; while((i < m) && (j < n)){ if(a[i] < b[j]) c[k++] = a[i++]; else c[k++] = b[j++]; } while (i < m) c[k++] = a[i++]; while(j < n) c[k++] = b[j++]; return c; } void main(){ int a[] = {1, 2, 3, 4, 8}; int b[] = {3, 5, 7, 9}; int *c; c = fusione(a, 5, b, 4); for(int i = 0; i < 10; i++) cout<<c[i]<<" "; }