| 56 | } |
| 57 | |
| 58 | void inorder(int index) |
| 59 | { |
| 60 | // checking for valid index and null node |
| 61 | if(index>0 && tree[index]!='\0') |
| 62 | { |
| 63 | inorder(get_left_child(index)); //visiting left subtree |
| 64 | printf(" %c ",tree[index]); //visiting root |
| 65 | inorder(get_right_child(index)); // visiting right subtree |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | int is_leaf(int index) |
| 70 | { |
nothing calls this directly
no test coverage detected