using an array as function parameter | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

using an array as function parameter

I tried to implement a function with the following prototype but I got an error during the compilation time. void print_tab(int tab[][]) after I replaced the 'int tab[][]' with 'int tab[][N]' the error has gone, (N is a constant defined using #define). can someone explain me why?

24th Mar 2020, 7:06 PM
John Robotane
John Robotane - avatar
1 Answer