I declared a constant global variable 'MEM_PRIMES' and I wanna use it in the struct below as the array elements' number but it errors saying "variably modified 'primes' at file scope.
/* global data */
const unsigned int MEM_PRIMES = 100;
struct{
char *filename;
FILE *pfile;
int nrec;
unsigned long long primes[MEM_PRIMES];
size_t index;
}global = {"D:\\C\\C files\\mytext4.bin", NULL, 0, {2ULL, 3ULL, 5ULL}, 3};