I want to pass a 2d array such that if I change the value of array in function not reflect in the original array.
Pass a 2d array into a function
Arrays are always passed by reference. There’s no way you can do it by value. Use backtracking for your purpose.
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.