I have a problem passing an array containing pointers. Here's the function..
void jointtree(Parent *clique[], int nodes);
I am calling it the following way..
jointtree(clique, nodes);
where clique is.
Parent *clique[nodes];
I have a problem passing an array containing pointers. Here's the function..
void jointtree(Parent *clique[], int nodes);
I am calling it the following way..
jointtree(clique, nodes);
where clique is.
Parent *clique[nodes];
What error are you getting? If you are not getting an error what is happening?
hmm.. I'm not sure but *[] may be treated as a multi-dimensional array, in which case the compiler would also need to know the size of the second (and every successive) dimension.
Please post error or full code!
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.