Create a node
| 9 | |
| 10 | // Create a node |
| 11 | struct node *newNode(int item) { |
| 12 | struct node *temp = (struct node *)malloc(sizeof(struct node)); |
| 13 | temp->key = item; |
| 14 | temp->left = temp->right = NULL; |
| 15 | return temp; |
| 16 | } |
| 17 | |
| 18 | // Inorder Traversal |
| 19 | void inorder(struct node *root) { |