Why does GMP use a pointer at the end of struct instead of zero sized array or Flexible Array Member?

105 Views Asked by At

Most of the sites I've been reading state that a zero-sized array, single element array or Flexible Array Members is the way to go when a dynamic array is needed, but the definition of an integer in GMP's source code is a pointer at the end of the struct (__mpz_struct), why is that?

I was expecting it to use zero-sized arrays, single element arrays or FAM

0

There are 0 best solutions below