Functions in C++

Types of Functions in C++ are : Library functions User Defined Functions The main( ) Function ANSI does not specify any return type for the main ( ) function which is the starting point for the execution of a program . The definition of main( ) is This is property valid because the main () in ANSI C does not return any value. In C++, the main () returns a value of type int to the operating system. The functions that have a return value should use the return statement…

Read More