Return Statement, Functions in C Assignment Help

Assignment Help: >> Functions >> Return Statement, Functions in C

Return Statement

 The return statement is mainly used in function to return a value to the calling function. Return Statement may also be used to immediate exit from the function to the calling function with no returning a value, in which it appears

Syntax:

                return;

or            return(expression);

Here return is known as a keyword. This Return Statement  can appear anywhere in the body of the function.

return 0: This statement returns zero to the operating system if the value entered by the user is 1 or negative.

return NULL: This statement returns NULL.

 

 

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd