Another option is to use a different type:
int (*)[5]
Like
void print(int (*array)[5], ...)
It will then work. But this is the same as typing
void print(int array[][5], ...)
Different syntax, but means the same thing. Both are pointers.
Originally Posted by Adak
io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
Originally Posted by Salem
You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.
Outside of your DOS world, your header file is meaningless.