Can you explain the answer of ques 7?

the answer is c and i am not geeting it .

Hello @anshulgurawalia there’s a prerequisite to this problem that is

a[i]= *(a+i)

similarly

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

so sum is nothing but arr[i][i++]
Now try to calculate it own you on as you know the trick.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.