I was trying to access a array by a simple struct:
int demo()
{
typedef struct {
void *things; // 1st element of my array
int sizeOfThings;
} Demo;
typedef struct {
void *A; //
int A;
int visited
} element; // my element struct
Demoarray[4]={"A","B","C","D"); // each element using struct element.
Demo->things = A;
return Demo;
}
I can successfully creat my array and my Demo node, but can I access this Demoarray in other functions simply by using my demo node? and how can I do it? Do I have to make my Demoarray[4] a golble variable?