I'm brand new to C and am trying to create a global array that will hold pointers to structs:
person* persons[n];
However, I need to make the above a global variable. To do that, I need to declare it outside of all functions. But how can I do that without knowing what n will be? Really lost here, any help would be appreciated!
The below is what I'm ultimately trying to accomplish:
person* persons[];
function () {
initialize global array here
}