How can I declare a global array whose size I calculate in a function later on (based on # of rows & columns of terminal ).
Error I am getting: variably modified 'box' at file scopeCode:// global vars int row, col; char box[row][col]; // causes error ... void getsize(){ isatty(STDIN_FILENO); struct winsize sz; ioctl(STDIN_FILENO,TIOCGWINSZ,&sz); row=sz.ws_row; col=sz.ws_col; }