How can the spaces from the string be removed?
962
How do you set timing on powerpoint?
344
How would you add comments to a cell?
552
I need to run a report at scheduled timings only. I don't want to run the report on sundays. How to do this?
1
In a synchronous motor. if start is running at high speed. What will be the starting torque :
Higher
Lower
Zero
1657
Hi All,
I am taking the SAP SD course and need some live case
studies for my practice, can any one help me in this
regard. You can mail it on my mail id: simkim4u@gmail.com
Thanks,
Sameer
1880
What is block for?
403
When maximum discharge is obtained in nozzle ?
988
Explain me how do you use the dropdown plugin?
3
What is the difference between a jdk and a jvm?
856
What are advantages of css3 over css?
598
what are aromatic plants?
1994
#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.
3704
Is shell a part of kernel?
1002
How do you specify the table creator name when creating a table in hive?
649