#include #include struct node { node *left,*right; int value; }; node *root; /************************************/ void print_tree (node *ptr) { } /************************************/ int main() { node *root; root = new node; root->value = 20; root->left = new node; root->right = new node; root->left->value = 10; root->left->left = NULL; root->left->right = NULL; root->right->value = 40; root->right->left = new node; root->right->right = NULL; root->right->left->value = 30; root->right->left->left = NULL; root->right->left->right = NULL; print_tree(root); }