Return statement
A return statement is used to transfer the control back to the caller of the method.Used to return a value to the calling method.A return statement immediately terminates the method in which it is executed.
Syntax:
return(value);
Example :
int MAX(int x,int y)
{
if (x>y) return x;
return y;
}