Approach 3 sub matrix sum of an array

in this code why you write

int**arr=new int*[n];
this lines whats indicate and without pointer how to write this line
for(int i=0 ; i<n ; i++)
{
arr[i]=new int[m];
}
what is the work in this code

int main(int argc ,char const *argv[ ])
why u write after main i.e. inside main parenthesis

hello @vishal_sangal_123

here we are declaring 2 d array dynamically . u will learn abut it in dynamic memory allocation playlist.

int arr[n][m];// this way also u can declare 2d array but it will be allocated over stack memory.

these are command line arguments , pls ignore or remove them ,we never use them in our program

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.