Https://ide.codingblocks.com/s/279499

why ist giving sewgementaion fault plzz chevk it sir

you have not insert anything in trie
so root=NULL
that’s why it is giving segmentation fault

rest is correct

i hope this helps
if yes hit a like and don’t forgot to mark doubt as resolved
if you have more doubts regarding this feel free to ask