Something quick.
This is my struct
Code:
typedef struct _Node
{
int ID;
char *Name;
int ParentID;
int Date_of_birth;
char *Place_of_birth;
int SpounceID;
int k;
int *ChildrenID;
int Generation;
struct Node *next_family;
struct Node *parent;
struct Node *spounce;
struct Node *children;
}Node;
Check out Node pointers. I get warnings where i use for example this temp= temp->next_family; in my code in order to move to the next node.
I've replaced it with temp=(Node *)temp->next_family; and warnings stoped but is it ok to do that or there is another way (more safe) to avoid those warnings ?
Thanks in advance