Difference between maven and ant?
194
#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.
3767
How do ethical concerns differ between general-purpose AI and domain-specific AI?
1
How it the difference between force balance system and
dispalacement balance system?
2096
What is CDC and explain complete CDC process flow?
593
How do you define a predicate?
897
Differentiate between data abstraction and encapsulation.
981
When a discrete time signal is called periodic?
853
What are the features of django?
474
i am pursing b.pharmacy iam interested in applying for the
post of drug inspector piz give me ideas how to pepare and
if you have model papers plzzzzzzzzzzz do send me sir
my email id is
vishwanreddy_90@yahoo.com
2422
What is directive order?
814
what is the min and max ohmic resistance for the earthing
rod installed for lighting poles for street light network
3812
What are unicode character string data types in ms sql server?
1257
What is IdentityMapper?
1005
Explain the site definition?
730