I want to find the number of rows and columns a matrix has without having knowledge of any other thing.
Example:
int * findElements(int matInput[][]) {
/*Count blah*/
/*Now to run a loop till the number of rows*/
/*I need to know the size of the matrix to run the loop above*/
}
I cannot run a loop to find the size as I don't know when to terminate and also don't know if the matrix was initialized while creation. Is there any other method?