Hallo,
wenn ich den unteren Code versuche zu kompilieren bekomme folgenden Fehler:
Alles anzeigen
Was mache ich falsch?
Viele Grüße
wenn ich den unteren Code versuche zu kompilieren bekomme folgenden Fehler:
Quellcode
- #include <stdio.h>
- #include <stdlib.h>
- void output_arr(int** array, int nrows, int ncols) {
- int i, j;
- for(i = 0; i < nrows; i++) {
- for(j = 0; j < ncols; j++) {
- printf("%d; ", array[i][j]);
- }
- printf("\n");
- }
- printf("\n");
- }
- int main() {
- int i,j;
- int m1[4][4] = {
- {0},
- {1},
- {0,1},
- {0,0,1}};
- output_arr(m1, 4, 4);
- return 0;
- }
Was mache ich falsch?
Viele Grüße