Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write a program for function overloading?

Answer Posted / sudesh kumar

#include<iostream.h>
#include<conio.h>
void add(int,int);
void add(int);
void main()
{
int a,b;
cout<<"enter two no";
cin>>a>>b;
add(a,b);
add(a);
getch();
}
void add(int x,int y)
{
int z;
z=x+y;
cout<<"the sum is "<<z;
}
void add(int x)
{
int z;
z=x*x;
cout<<"the sequre is A value"<<z;
}

Is This Answer Correct ?    37 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use encapsulation in oops?

1024


What are the 4 main oop principles?

1219


Why is destructor used?

1014


write knight tour problem which is present in datastructure

2648


What is use of overloading?

1134


i got a backdoor offer in process global,Bangalore..Can i work with it?

2837


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6676


write string class as your own class in java without using any built-in function

2487


Describe these concepts: Polymorphism, Inheritance and Abstraction.

1187


Can static class have constructor?

1027


How to improve object oriented design skills?

1010


What does and I oop and sksksk mean?

1156


Can private class be inherited?

1166


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2609


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1847