What is shutdown of electrical sub station?
2513
#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.
3773
What is a private key?
5
What is the tableau data engine?
396
Explain virtual desktop.
882
What are query parameters and power bi templates?
1
Point the difference between translate and replace?
1097
Explain filters in zend framework with examples?
218
What is spool space? Why do you get spool space errors? How do trouble-shoot them?
992
How can create a backup and copy files in jenkins?
1
What is “call by reference” in python?
909
Zend framework and wordpress integration?
180
RLIKE in Hive?
795
What is a podcast and how does it work?
836
Explain the function of dd disp parameter?
1130