Doubts in question of pointers mcq

I am not able to understand Q-4 and in question 7 i am confused by the line sum+=((arr+i)+(i++)) what does the outer * stands for?

Hello @kshitiz_joshi,

Ques:4
A memory leak occurs when programmers create a memory in heap and forget to delete it.
In this program, after executing the following code the compiler will lose access to the memory assigned at run time using malloc()
So, this leads to a memory leak.

Computers crash because of errors in the operating system (OS) software or errors in the computer hardware.

Ques7.
That statement is equivalent to:
sum+=arr[i][i++];
The outter * is the dereferencing operator.

Hope, this would help.
Give a like, if you are satisfied.

in ques 7 why we are using the dereferencing operator twice ((a+i)+i++)

Hey @kshitiz_joshi,

*(arr+i) gives the pointer to first element in ith row.
((arr+i)+(i++)) gives the ith element in ith row and increments i.

Hope, it will help.