Do you see any problem in the code of nextInOrder below TreeNode-03477
Do you see any problem in the code of nextInOrder below: <br><pre><code class="language-text">TreeNode * nextInorder(TreeNode * p) { if(p->RTH == thread) return( p->R ); else { p = p->R; while(p->LTH == child) p = p->R; return p; } }</code></pre>
This multiple choice question (MCQ) is related to the book/course vu cs301 Data Structures. It can also be found in vu cs301 Final Term - Quiz No.18.
Do you see any problem in the code of nextInOrder below:
TreeNode * nextInorder(TreeNode * p) { if(p->RTH == thread) return( p->R ); else { p = p->R; while(p->LTH == child) p = p->R; return p; } }
The function has no problem and will fulfill the purpose successfully
The function cannot be compile as it has syntax error
The function has logical problem, therefore, it will not work properly
The function will be compiled but will throw runtime exception immediately after the control is transferred to this function