function overridind means and simple program

Answer Posted / preetha

the function overloading is the technique in which you can make the function with more than one name but only if you will change the paramaters or the number of the paramaters.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is this job good for future? can do this job post grduate student?

1793


Can a varargs method be overloaded?

701


What is the main purpose of inheritance law?

765


#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.

3362


How is class defined?

685






Which type does string inherit from?

710


Why multiple inheritance is not possible?

681


What is debug class?what is trace class? What differences are between them? With examples.

1710


What is the use of oops?

694


Prepare me a program for the animation of train

2084


What is polymorphism give a real life example?

638


What do you mean by Encapsulation?

726


Advantage and disadvantage of routing in telecom sector

870


What is polymorphism and why is it important?

651


Why do we need polymorphism in c#?

791