Error in passing 2d array as arg to function


I am trying to make a prefix matrix but unable to pass the 2d array to a matrix, I tried passing without m and n, then an error is I need to initialize the array size.

Hello @prashantgupta9876 please see this code:


if you have any doubt you can ask here:
Happy Learning!!

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.