Member of a structure can be pointer to itself?

Answer:
Yes, member of structure can be pointer to itself. For example:
struct city{
    char *name;
    int id;
    city *ptr;  //pointer to same structure
}; 

No comments: