1. 首页
  2. 算法数据结构
  3. 数据结构算法

编写 C 代码以在二叉树上执行按顺序遍历?



c
void in-order(struct treenode *tree){
if(tree != NULL)
{
in-order(tree→ left);
printf("%d",tree→ root);
in-order(tree→ right);
}
}

发布者:admin,如若转载,请注明出处:https://ai1024.vip/37940.html

QR code
//