Diving Deep into C++
β’A large program can typically be split into smaller sized blocks called functions.
β’Functions can be classified into Predefined or Built-in or Library Functions and User-defined Functions.
β’User-defined functions are created by the user.
β’The void function tells the compiler that the function returns nothing.
β’ The return statement returns a value to the calling function and transfers the program control back to the calling function.
β’The default return type of a function in C++ is of type int.
β’A function that calls itself is known as
recursive function.
β’Scope refers to the accessibility of a
variable.
β’There are four types of Scopes. They are:
Local scope, Function scope, File scope
and Class scope.
β’The scope operator (::) reveals the hidden scope of a variable.