I\'m trying to create an array of structs and also a pointer to that array. I don\'t know how large the array is going to be, so it should be dynamic. My struct would look s
The second option of a pointer is good.
If you want to allocate things dynamically, then try:
stats_t* theStatsPointer = (stats_t*) malloc( MAX * sizeof(stats_t) );
as Roland suggests.
Just don't forget to
free(theStatsPointer);
when you're done.