Determine the output of the following recursive function and also determine what does this recursive function do? Input is given in the form of tree below and X is pointing to the root node to the tree that is 48. Show complete dry run of recursive calls. void myStery(Node * X ) { if (X==nullptr) return; if (X->getleft()== nullptr && X->getright()==nullptr) { cout getData() getleft()!=nullptr) myStery(X->getleft()); if (X->getright()!=nullptr) myStery(X->getright()); } Input: X=48
Answers
Answered by
0
Answer:
hume answer malum hota toh hum iss app pe kya karte
Similar questions