Define c# delegate?
496
Does the knowledge of mathematics of science is required to get into aerospace engineering?
651
Why do we use the xmlhttprequest object in ajax? : asp.net ajax
534
Name 3 attributes of the position property.
565
#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.
3230
How to configure mapping in informatica?
666
How does shell scripting work?
596
What is the major difference between Thread.start() & Thread?run() method?
560
Explain apk format for android?
488
What happens if a function module runs in an update task?
549
The velocity of a body was noted to be constant during five minutes of its motion. What was acceleration during this interval its?
489
Tell me some techniques you employ to keep an office organized?
1111
What is a inode?
471
Where can I get access to the open source flex project information?
5
How do you declare an array in java?
506