saving . . . saved function has been deleted. function has been hidden .
return statement from function definition to function call is necessary or not, while we return value from it(definition to call)?

C-and-Cpp Functions 03-04 min 30-40 sec 29-02-20, 3 p.m. csaranchandran03


It is necessary, but some compilers do not check it.
29-02-20, 3:02 p.m. bhaskar76

If return type of the function is void then no need of writing return statement in function definition
29-02-20, 3:07 p.m. vbit_rr
but in that video tutorial, return type is declared as int. but return statement is not used. It is not produce error also.
29-02-20, 3:18 p.m. csaranchandran03

Login to add comment

Log-in to answer to this question.