In my book a question is like below:
Match the following with reference to the following program segment:
Code:struct
{
int x, y;
}s[]={10, 20,15,25,8,75,6,2};
int *i;
i=s;
1 *(i+3) a 85 2 s[i[7]].x] b 2 3 s[(s+2)->y/3[I]].y c 6 4 i[i[1]-i[2]] d 7 5 i[s[3].y] e 16 6 (s+1)->x+5 f 15 7 *(1+i)**(i+4)/*i g 25 8 s[i[0]-i[4]].y+10 h 8 9 (*(s+*(i+1)/*i)).x+2 i 1 10 ++i[i[6]] j 100 11 k 10 12 l 20
My doubts are, is it to declare *i as int and assign like i=s;
and division with pointer gives error in compiler.