[Solved] How to declare a pointer to an array of pointer
I have a task to create an array of pointers to structure You need two “sizes”: The number of pointers The size of the struct You only pass one. So fix your code for example like this #include <stdlib.h> /* for malloc(), free() */ void create1(void *** pppv, size_t n, size_t s) { assert(NULL != … Read more