Functions in C++
Functions in C++ Hello! Everyone in the previous blog we have discussed about classes and object in c++ and how to create and how to access these classes and its member function. But in this tutorial we will discuss about function and its overloading in c++ What is function? As you listened word function and overloading of function first question that will come to your mind that what is this function and why we are studying This. So i am giving few points about function, so that you can get some idea about function: 1.function is a Self contained block of statements that performs that performs a coherent task of some kind. 2.Every C++ program can be thought of the collection of functions. 3.main() is also a function. Type of functions There are mainly two type of functions in c++. 1.Library function 2.user defined functions: that means programmer can create their own function to perform a specific task. Uses of functions 1.Writting functions avoids rewri...