for(i=0; i< length_del_array/2; i++){ int aux = array[i]; array[i] = array [length_del_array - i]; array[length_del_array - i] =aux; }