Function Overloading Function Overloading is used when we need to handle parameters of different data types. Function Overloading refers to having different function with same name. The functionality of that function is then defined according to the type of parameters given. For example: The above function will not give expected output as we have provided … Continue reading More on Functions
Month: January 2017
Functions
A group of statement that perform a particular task are known as functions. We have already seen functions, the main() function is an inseparable part of a C++ program. We can define our own functions too. The main() function looks like: The return type of a function is declared first which describe the type of … Continue reading Functions
