Cost Accounting
1677
How can we identify the resources for which the sessions are waiting?
1
Is google an android phone?
522
How to count duplicated values in a column in oracle?
554
#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.
3259
What is clr? Difference between clr & cts?
694
What are the Development tools?
5
What is full join in sql?
526
What is aspx used for?
515
Hi,
i am looking for join learn real time project on dotnet please tell me which is the best institute now i am staying in a ameerpet.
thank u for advance.
1048
How is modularity introduced in C++?
772
What is the importance of having a selection bias?
104
What is hot add cpu in sql server 2008?
526
Can i know some of the Realtime tickets that anyone has been
faced ?
1667
Explain entity type?
633