Tutorials, Free Online Tutorials,It Challengers provides tutorials and interview questions of all technology like java tutorial, android, java frameworks, javascript, core java, sql, php, c language etc. for beginners and professionals.

Breaking

9. Print a data from a binary tree – In-order(ascending)

9. Print a data from a binary tree – In-order(ascending)


// recursive version


Void PrintTree ( struct * node node )
{
  if ( node == NULL )
                                 return;

 PrintTree(node->left );
 Printf(“%d”, node->data);
 PrintTree(node->right );
}

    

No comments:

Post a Comment