What are the advantages of pig language?
890
Explain 4 way handshake in wlan?
906
#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 is garbage collection? Can it be forced to run?
1013
How many ways we can retrieve the date in result set of mysql using php?
1121
How do I set user privileges in mysql?
889
What is difference between mvc and mvvm in ios?
858
Define delay time.
1089
What is the Difference Between SCADA and BMS?
1745
Can value be null in treemap?
902
How do I customize validation error messages for a form?
777
Explain HCatWriter?
5
How does stack look in function calls? When does stack overflow? What can you do to remedy it?
984
What are the possible values of the “position” attributes?
688
What does pst mean? What do the pst files contain?
3