for (j=0;j<size;j++)

data[j]=j+100;

i did this way, as you guys suggested...thanks a lot