Just a quick question.

if the array size is w1[6] w2[6] w3[6]

And I am putting in 6 items into the array for f and r.

for(i=0;i<n1;i++)
for(j=0;j<n1;j++)
w3[i].f=w1[i].f+w2[j].f
w3[i].r=w1[i].r;
How are the arrays .f and .r being stored?