using namespace std;
int matrix ;
int rows=sizeof( matrix )/sizeof( matrix );/* the first part is to count how many bytes should occupy in this (2D array) ,
and the second is just how many bytes in the first row , if you divided them you'll get the number of rows of course */
int columns =sizeof( matrix )/sizeof( matrix );/* the first part is just the same as before but you should divided it by
the number of the bytes of each location "ex: the first location" , to get the number of columns in the matrix */
// there is many ways you can express the same idea , good luck .
answered on 03/12/19