I got the following:
Whats wrong with it? i get the error:Code:#include <stdio.h> void print(int *array); int main(void) { int array[5][5] = {{1,2,3,4,5}, {1,2,3,4,5}}; print(&array[0][0]); } void print(int *array) { int i, j; for(i=0; i<=4; i++) { for(j=0; j<=4; j++) { printf("%d\n",array[i][j]); } } }
Code:stringArray.c: In function `print': stringArray.c:16: error: subscripted value is neither array nor pointer