X,Y passing size for the array in C function

double minimum(int rowsize,int size, double x[rowsize][size]){...}
or simply

double minimum(int rowsize,int size, double x[][size]){...}

So specifying rowsize is optional.

But here I guess it is square size x size so it will be

double minimum(int size, double x[][size]){...}

So you are correct in that.

How to call it?

minimum(10,x)

Leave a Comment