I'm starting to work with tries in C and I made this really simple program, but somehow it crashes. I don't know why but if you could take a look at my code and tell me that would be great.
#include <stdio.h>
#include <stdlib.h>
#include <cs50.h>
#include <string.h>
typedef struct node
{
bool is_word;
struct node* children[27];
}
node;
node* root;
int main()
{
root->children[0]=NULL;
}