How do you you implement function that takes a pointer int* to a 2D array as an input? My current code is:
#include <iostream>
using namespace std;
int main (void){
  int M [4][4] = {
    {1,2,3,4},
    {5,6,7,8},
    {9,10,11,12},
    {13,14,15,16},
  };
  int* Mat = M;
  myFunc(Mat);
}
void myFunc(int* Matrix)
 
     
    