How to pass a 2D matrix in C++ to a function.
Please check my code and tell me the errors that I am doing.
How to pass a 2D matrix in C++ to a function.
Please check my code and tell me the errors that I am doing.
@settingsingh hey ,it is necessary to write number of columns in matrix as you can not acess element without having no of columns,eg:
int fun(int a[ ] [10])
Hope you get it ,pls correct in code.
But, how will I know what size has the userr entered? any alternative way? I googled but not getting useful content. Please help
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.