...

/

Function Declarations

Function Declarations

In this section, we will understand the purpose of functions in C++.

Definition #

A function is a set of statements and operations. Like variables, functions have names. When a function is invoked or called, the sequence of statements inside it is executed.

Rules of declaration #

  • The name of the function should hold ...