Devi usare malloc.
Ad esempio:
La parte in rosso è obbligatoria se non usi un compilatore C puro.codice:int* arr = (int*) malloc(sizeof(int) * numero_di_elementi_letti_da_variabile); /* quando non serve più */ free(arr);
Devi usare malloc.
Ad esempio:
La parte in rosso è obbligatoria se non usi un compilatore C puro.codice:int* arr = (int*) malloc(sizeof(int) * numero_di_elementi_letti_da_variabile); /* quando non serve più */ free(arr);
This code and information is provided "as is" without warranty of any kind, either expressed
or implied, including but not limited to the implied warranties of merchantability and/or
fitness for a particular purpose.