在线题库
[单选] 以下程序是中序遍历二叉树的递归算法的程序,完成程序中空格部分(树结构中左、右指针域分别为left和right,数据域data为字符型,BT指向根结点)。 voidInorder(structBTreeNode*BT) { if(BT!=NULL){ Inorder(BT->left);} __(1)__; __(2)__; } 利用上述程序对右图进行中序遍历,结果是__(3)__; file-storage/1604637
发布时间:2024-03-05
0次
选项3答案 1选择...printf(“%c”,BT->data)d,b,e,a,f,cInorder(BT->right) 选项2答案 2选择...printf(“%c”,BT->data)d,b,e,a,f,cInorder(BT->right) 选项1答案 3选择...printf(“%c”,BT->data)d,b,e,a,f,cInorder(BT->right)