How can I get the Size of an struct Pointer..
struct person **angest=NULL;
In this struct are 22 persons registrar. How can I get the Count 22 with sizeof? It is possible?
How can I get the Size of an struct Pointer..
struct person **angest=NULL;
In this struct are 22 persons registrar. How can I get the Count 22 with sizeof? It is possible?
It seems you are allocating the persons using malloc, eg angest=malloc(sizeof(struct person *)*22); (you have now allocated 22 pointers to the structs)
Then it is not posible to get this number 22 by using sizeof. The size of dynamically allocated arrays cannot be calculated in compile time. You must maintain this size yourself, e.g. static int nPersons;