My 1st post...apologies if format is incorrect.
Why do I get this warning for the below simple example?
"prog.c:9: warning: passing arg 1 of `digital_display' from incompatible pointer type"
This program successfully compiles if either:Code:void digital_display( const char digit[10][9] ) { } int main ( void ) { char digit[10][9]; digital_display( digit ); // this is line 9 }
1. I take away one index: "digit[10][9];" to "digit[10];"
or 2. take away the "const" keyword.
Thank you.