Hi..
I have a question about arrays and pointer..first i will explain what i am trying to do..
I am tryin to create a "struct" which contains an "array of pointers" and an int which counts the amount in array.
the thing i don't understand is that the pointers in that array is pointing to another "strcut"(s) and how can i type define that..Is the way i defined is Correct.. here is the code below;
CODE
struct field{
int numHoles;
Hole *PointersToHoles[N]
}
Here is the sturct called hole is defined;
CODE
typedef struct {
blaa..
blaa..
}Hole;
Plz tell me whether the above way of defining this part "Hole *PointersToHoles[N]" is correct. I just want to make sure before i go furthur with my code.. there is a lot to write. this is just the base of my Program.
Thanks