I want to use a static array inside the following structure:
struct N{
int id;
static long history[100];
};
struct N Node[R][C]; // R is # of rows, C is # of coloumns
But I got this error:
P.c:38:2: error: expected specifier-qualifier-list before ‘static’
static long history[100];
I don't know why? Does it mean I cannot use static inside structures?