What is super in oop?
1183
Is html an oop?
1082
#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.
3778
Why do we use encapsulation in oops?
1048
String = "C++ is an object oriented programming language.An
imp feature of oops is classes and objects".Write a pgm to
count the repeated words from this scenario?
2402
What is the fundamental idea of oop?
1143
What does no cap mean?
1071
Write a program to implement OOPS concepts such as
inheritance, polymorphism, friend function, operator
overloading?
4762
What is overloading and its types?
1185
What is the benefit of oop?
1066
Which is better struts or spring?
1066
Who invented oop?
1143
What is basic concept of oop?
1180
What is the main purpose of inheritance law?
1201
What is polymorphism in oops with example?
1071