ExplanationIn the above program, the following user-defined functions are given,
int insert (int) : This function is used for insertion of an element,
int del (int) : This function deletes a specific element.
int inorder (struct nodes *) : This function displays the elements in order traversal.
int preorder (struct nodes *) : This function is used to display the list of elements in preorder
traversal.
int postorder (struct nodes *) : This function displays the list of elements in postorder traversal
format.
int show (struct nodes*, int) : This function shows the elements in entered format.
For
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.