Se stai inizializzando l'array dovrebbe essere 0. C'è il trabocchetto?