I need to declare an array of structures with size symbolnum, but because symbolnum is variable C will produce an error when i write the following code:
extern int symbolnum;
struct SymbTab stab[symbolnum];
I already tried:
extern int symbolnum;
const int size = symbolnum;
struct SymTab stab[size];
Is there a way to achieve this without using dynamic memory allocation functions like malloc() or initializing the size of array using a very big number?