Explain the embryonic development stages after formation of blastula?
1
#include
#include
#include
#include
void insert(struct btreenode **, int);
void inorder(struct btreenode *);
struct btreenode
{
struct btreenode *leftchild;
struct btreenode *rightchild;
int data;
};
main()
{
struct btreenode *bt;
bt=(struct btreenode *)NULL;
int req,i=1,num;
clrscr();
printf("Enter number of nodes");
scanf("%d",&req);
while(i<=req)
{
printf("Enter element");
scanf("%d",&num);
insert(&bt,num);
i++;
}
inorder(bt);
}
void insert(struct btreenode **sr, int num)
{
if(*sr==NULL)
{
*sr=(struct btreenode *)malloc (sizeof(struct btreenode));
(*sr)->leftchild=(struct btreenode *)NULL;
(*sr)->rightchild=(struct btreenode *)NULL;
(*sr)->data=num;
return;
}
else
{
if(num < (*sr)->data)
insert(&(*sr)->leftchild,num);
else
insert(&(*sr)->rightchild,num);
}
return;
}
void inorder(struct btreenode *sr)
{
if(sr!=(struct btreenode *)NULL)
{
inorder(sr->leftchild);
printf("\n %d",sr->data);
inorder(sr->rightchild);
}
else
return;
}
please Modify the given program and add two methods for post
order and pre order traversals.
3770
What are the different types of synonyms?
1140
Tell me in accounting, how do you define premises?
1125
What is cart and chaid?
328
What are the foremost variations between tableau version seven.0 and tableau version eight.0?
392
What is Responsive Layout??
5
What is internet marketing? By what other names is it known ?
498
What is semopm (max-sem-ops in solaris 10+)?
771
is there any way to execute more than one proc in the same
exec statement at the same time..?
2639
What are all the different types of indexes?
1149
Tell me interlink data type can be declared as?
668
Had you thought of leaving your present position before? If
yes, what do you think held you there
2883
Which php framework is best?
992
An advertiser looking to drive conversions is using manual cost-per-click (cpc) bidding. Which factor should be most important for this advertiser when keyword bids are decided?
209