SE250:lab-6:rthu009

From Marks Wiki
Jump to navigation Jump to search

Lab 6

Writing the main function

This function stores some values in the binary tree.

int main(void){

int i;
Node *parent = empty;
double num[] = {6,14,4,8,12,16};
parent= mkNode(10,parent );
for (i=0; i<=5; i++){
insert(num[i], &parent );
}
show_tree(0,parent);
}