Assuming lottozahlen
is declared as int lottozahlen[12][6]
:
void bubblesort(int *array [12] [6], int length)
here the array
parameter is declared as an array of array of pointers. Not what you want.
bubblesort(lottozahlen[12] [6], k);
here you call bubblesort
with the element of the array at position (12, 6)
as the first argument. Not want you want either.
It should be:
bubblesort(lottozahlen, k);
void bubblesort(int array [12] [6], int length)