C++ Syntax: return

Description

The return statement exits the current function. Unless the function returns void, the return statement must be followed by the expression it is to return, for example:- Int_t function AddThem(Int_1 num1, Int_t num2) { return num1 + num2; }

Usage Notes

None.
Go Back to the The C++ Crib Top Page


If you have any comments about this page please send them to Nick West