C++ Functions interview questions and answers

What are function prototypes? - In C++ all functions must be declared before they are used. This is accomplished using function prototype....
What is function overloading? - Function overloading is the process of using the same name for two or more functions...
What are default arguments in functions? - C++ allows a function to assign a parameter a default value when no argument corresponding to that parameter is specified in a call to that function....
What is static function? - Static member functions are used to maintain a single copy of a class member function across various objects of the class....
What does extern mean in a function declaration? - An extern function or a member can be accessed outside the scope of the .cpp file in which it was defined....
Define precondition and post-condition to a member function - Precondition: A condition that should return true when a member function is invoked....