con calloc:
int n = 10; // numero di elementi
int *futuro_array = calloc(n,sizeof(int));
lo puoi usare per qualsiasi tipo (sostituisci il tipo nel sizof).
calloc azzera la memoria allocata.
con calloc:
int n = 10; // numero di elementi
int *futuro_array = calloc(n,sizeof(int));
lo puoi usare per qualsiasi tipo (sostituisci il tipo nel sizof).
calloc azzera la memoria allocata.
Drug misuse is not a disease, it is a decision, like the decision to step out in front of a moving car. [...] In this particular life-style the motto is "be happy now because tomorrow you are dying", but the dying begins almost at once, and the happiness is a memory.