I have a 2D array char g[height][width] in my main().
And i want to call void affect(int height, int width, char g[height][width])
When I write affect(height, width, g);, the code support tells me :
No matching function for call to ‘affect’
main.c:173:9: note: candidate function not viable: no known conversion from ‘char [height][width]’ to ‘char (*)[width]’ for 3rd argument
I am not an expert, so maybe there’s something wrong that I don’t see ?
Thanks for your help !