hi guys!
i was wondering if somebody could paste the code of a function that prints out all the values of a 2dimensional array. i keep getting a missing subscript compilation error.
the equivalent for a one dimensional array would be:
/* code starts here */
void print_array(int array [], int len) {
int n;
for(n=0;n<len;n++) {
printf("%i ",array[n]);
}
printf("\n"
;
}
/* code ends here */
have a good thanksgiving!
i was wondering if somebody could paste the code of a function that prints out all the values of a 2dimensional array. i keep getting a missing subscript compilation error.
the equivalent for a one dimensional array would be:
/* code starts here */
void print_array(int array [], int len) {
int n;
for(n=0;n<len;n++) {
printf("%i ",array[n]);
}
printf("\n"
}
/* code ends here */
have a good thanksgiving!