function overloadingfunctions can be defined with


Function overloading:

Functions can be defined with same name.  Depending upon the type of argument passed

the function will perform.  This is known function overloading.  It may look like calling the same function but really it is not. This is also called as function polymorphism.

int f_over(int x);

float f_over(float a, float b);

void main( )

{int a=10;

float x=11.11,y=22.2,z;

c =f_over(a); //The value of c is 10

}

int f_over(int x);

{return (x)

};

float f_over(float x, float y)

{return (x/y);

}

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: function overloadingfunctions can be defined with
Reference No:- TGS0161131

Expected delivery within 24 Hours