title: Tree traversal (preorder,inorder,postorder) print result change
body: <pre><code>#include &lt;stdio.h&gt;  
  #include &lt;stdlib.h&gt;  
  #include &lt;memory.h&gt;  
  
  void preorder(char tree[], int i)    
  {  
     if(tree[i] != '\0')  
     {  
          printf("%c", tree[i]);
          preorder(tree, i*2);  
          preorder(tree, i*2+1);  
    }  
  }  
  void inorder(char tree[], int i)  
  {  
     if(tree[i] != '\0')  
     {  
          inorder(tree, i*2);  
          printf("%c", tree[i]);  
          inorder(tree, i*2+1);  
    }  
  }  
  void postorder(char tree[], int i) 
  {  
     if(tree[i] != '\0')  
     {  
          postorder(tree, i*2);  
          postorder(tree, i*2+1);  
          printf("%c", tree[i]);  
    }  
  }  
  void main()  
  {  
  
     char ArrayTree[36] = { 0,'A','B','C','D','E','F','G','H','I','J','K',0, };  
     printf("\n preorder : ");  
     preorder(ArrayTree, 1);  
     printf("\n inorder: ");  
     inorder(ArrayTree, 1);  
     printf("\n postorder: ");  
     postorder(ArrayTree, 1);  
     getchar();  
  } 
  </code></pre>
  
  <p>Current Print result </p>
  
  <p>preorder : ABDHIEJKCFG  /
  inorder: HDIBJEKAFCG      /
  postorder: HIDJKEBFGCA   /</p>
  
  <p>But I want to print like this</p>
  
  <p>preoder : ABDHEIJCFGK  /
  inorder : HDBIEJAFCGK  /
  postorder : HDIJEBFKGCA  /</p>
  
  <p><a href="https://i.stack.imgur.com/K0Ycj.jpg" rel="nofollow noreferrer">Binary Tree image</a></p>
  
  <p>How to change it?</p>