Can someone explain the output of calling mystery(root) on the binary tree below?
struct treenode {
int data;
struct treenode* left;
struct treenode* right;
}
void mystery(struct treenode* root) {
if (root == NULL) return;
mystery(root->right);
printf("%d ", root->data%25);
mystery(root->left);
}
Tree:
35
/ \
23 17
/ \ /
89 135 56
/ \
44 89
\
74
/
287
See below trace: