Pointers MCQ question 7

int arr[3][3];
int i, sum=0; i = 0; while(i<3) {
sum += * ( * (arr+i)+(i++)); }
printf(“sum:%d”, sum);

can you help me in dry run of this code?
I am not able to understand
sum += * ( * (arr+i)+(i++))

hello @rakesh_anand

to solve this problem u should know this->

a[i]= * (a+i)

similarly
a[i][j]= * (a[i]+j) = * ( * (a+i) + j )

so u see this

this is nothing but arr[i][i++]

now i think u can calculate answer on ur own