void visit(node *current){ if(current->left) // if left child exist { visit(current->left) ; //visit it } if(current->right) // if right child exist { visit(current->right) ; // visit it }}