I have a program which essentially is a spreadsheet, which I run as a double array (rows and columns) of a structure cell. When write my function prototype it gives me errors on compile, not sure why....
Code:#include <stdio.h> #include <string.h> #include <stdlib.h> void print_cell(cell sheet[][]); <--------- COMPILE ERROR: error: expected ‘)’ before ‘sheet’ typedef struct cell { int type; // 0-none 1-number 2-text 3-forumula char text[32]; int form; //1-avg 2-sum 3-min 4-max int num; }cell; int main() { // 9 by 9 spreadsheet cell sheet[9][9];