• +91 9723535972
  • info@interviewmaterial.com

Data structure Interview Questions and Answers

Question - Write the C code to perform in-order traversal on a binary tree.

Answer -

void in-order(struct treenode *tree)  
    {  
        if(tree != NULL)  
        {  
            in-order(tree→ left);  
            printf("%d",tree→ root);  
            in-order(tree→ right);  
        }  
    }  

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners