here's to my first post on this website.
I'm trying to initialize an array of 30 pointers to NULL. The array is stored as a global and I'm doing the initialization in my init() function like so:
static headerT* free_list[30];
....
init() {
free_list[30] = {NULL};
}
However, I get the following complier error - "error: expected expression before ‘{’ token".
Any thoughts on what I could be doing wrong?
Thanks in advance.
init()function.free_list[30]does not exist: the array goes fromfree_list[0]tofree_list[29]