Int ind = index()*2; store(ind,C + ind ); It doesn't work when I do this, and it still store values in a continuous memory