0

When this function is called I want the Height and Width parameters to be used to size the 2D array. But I am getting a "a parameter is not allowed" error.

void Grayscale(int height, int width, RGBTRIPLE image[height][width])
{

}
TedSnow
  • 11
  • 2
  • 1
    What compiler are you using? Microsoft Visual Studio's C compiler is not compliant with standard C. (Yes, VLAs are merely optional in C11. But they're **mandatory** in C99 and will be again in C23...) – Andrew Henle Jan 25 '23 at 14:30

0 Answers0