Write short notes on Return statement and give any four return statement types.

Return Statement
     The return statement is used to return the control from the calling function to the next statement of the called portion of the program.
 The return statement also causes the program logically to return to the point from where the function is accessed(called) . the return statement returns one value per call.
The return statement can  be any one of the type as shown below,
return ;
return ();
return (constant);
return(variable);
return(expression);
return(conditional expression);

return(function);

0 Comment "Write short notes on Return statement and give any four return statement types."

Post a Comment