A function is a named block of code that perform some action.
The statement written in function are executed when it is called by its name.
Each function has a unique name.
Function are the building block of C++ programs.
They are us...See more
ed to perform the tasks that are repeated many times.
A program may need to repeat the same piece of code at various places.
It may be required to perform certain task repeatedly.
The program may become very large if functions are not used.
The real reason for using function is to divide program into different parts.
Answer the Question