Passing 2d Matrix as Function Parameter in C++

Tagged with : C++

Written on August 6, 2017

Today i came across a problem while passing a 2d array or say matrix as a function parameter in C++. So after understanding how it works, I implemented this program, which takes in dimensions of the matrix (rows and columns) and then use getdata and display data to take the input for the matrix and display the matrix, after passing the matrix as a parameter to the function.