I have the following declarations:
typedef struct{
int year; // key
char title[51];
char director[41];
} MOVIE;
typedef struct node{
struct node *left;
MOVIE *movie;
struct node *right;
} TREE_NODE;
lets say I create a TREE_NODE called root. Why can't I do this declaration?
root->movie->year = 1990
Whenever I try it in my program, it crashes :\