This line is incorrect:
htData_ array[20] = htDataArray;
You cannot assign a pointer to an array.
In the edited code, here is the problem:
Actually, this is syntactically correct, so it should not give warnings. But you are doing the wrong stuff here. If you want ht.entries point to the first element of the array, you need to declare it as
htData_* entries; // 'struct' keyword not needed ahead of declaration
and assign it as,
ht.entries = &htDataArray[0];
source share