How can I pass a 2d array to a function as an argument?
Pass a 2d array to a function
to pass 2d array you have to specify the number of rows
Please check method 1 and 2 for the examples.
What if i want to do without using any global constant?
if you know the number rows it is possible to just use the number instead of global constant
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.