pls explain the solution
Pointer mcq ques 7
Hey @Shreya-Gupta-2383169445069382 let me give you a hint,
- ( * (arr+i)+(i++))Íž is equivalent to
arr[i][i++].
I this solves your doubt mark it as resolved.
After the conversion of pointer representation to matrix representation, it is clear that sum is sum of all elements of principal diagonal.