C++ Programming | Functions 6

No pass and return

In No Pass and Return, no value is passed from the calling function to the called function but a value is returned back from the called function to the calling function.

Note:

* A function can return a maximum of one value.
* There can be any number of return statements in a function but as soon as any one of return the statement gets executed the control goes back to the calling function.