I have a function signature that uses a parameter value to dynamically allocate an array of the correct size
void print(int rows, int cols, char arr[rows][cols])
I am currently working in the Visual Studio IDE. It seems to have a problem with not knowing what the parameter is and therefore not knowing how much memory to allocate. It is a syntax error and won't even compile. Is there a way to ignore the error/compiler warning. I previously had a scanf compiler warning but disabled it following this link. Can I define something like
#define _CRT_SECURE_NO_DEPRECATE
for this problem? Thanks