Can this code work without usig pointers

is there a possible way where we create a matrix without using pointers. how will this concept work without the use of pointers

Hey Anukrati, in this problem you just need to find number of submatrices for which any given element(say a[i][j]) can be part of, let this be x, so contribution of this element is a[i][j]*x in final answer,
calculation of x is explained in video. Also no pointers are involved in this approach!

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.