Inkompatibler Zeigertyp

Ich habe die Funktion mit folgender Signatur:

void box_sort(int**, int, int)

und Variable des folgenden Typs:

int boxes[MAX_BOXES][MAX_DIMENSIONALITY+1]

Wenn ich die Funktion aufrufe

box_sort(boxes, a, b)

GCC gibt mir zwei Warnungen:

103.c:79: warning: passing argument 1 of ‘box_sort’ from incompatible pointer type (string where i am calling the function)
103.c:42: note: expected ‘int **’ but argument is of type ‘int (*)[11] (string where the function is defined)

Die Frage istWarum? Ob int x [] [] und int ** x (und tatsächlich int * x []) nicht die gleichen Typen in C sind?

Antworten auf die Frage(4)

Ihre Antwort auf die Frage