I want to send an array "canvas" into each of the function prototypes, but the compiler always says the "row" and "column" in canvas[row][column] when I'm defining the functions are not defined there. What is wrong with what I'm putting?
Also, how am I supposed to send arrays into functions? What I have to send the array "canvas" into the functions are the last four lines of the code below, but it doesn't work. What should I do?
Please help! Thanks in advance!
#define SIZE 25
void line(char canvas[row][column]);
void unfilled(char canvas[row][column]);
void filled(char canvas[row][column]);
void printarray(char canvas[row][column]);
int row, column;
printf("Welcome to the ASCII Art program.\n");
printf("Please make sure when entering your values that\nyou start from the left side going right\n");
} //end main function
You don't. Pass a POINTER to the first element of the array.