The C ode is broken


#1

based on a previous practice, I would expect a pointer to an integer is being passed to *len1 and *len2.

when a value is set on one of those referenced variables, it creates a segmentation fault.

int ** generateMatrix(int A, int *len1, int *len2) {
int **Array;
int i = 0, j = 0;
int count = 0;
int delta_i = 0;
int delta_j = 1;

*len1 = A;
*len2 = A;