To return the exp. or const
to the main fumction.
Where there is no need to return any type of value from a function
To return the exp. or const to the main fumction.
To specify the return-type of the function.
In C/C++ programming and most other procedural languages, you use a return statement to return control to the calling function. In the case of the global main function, a returnstatement terminates the program, releasing all memory used by the program and returning control to the execution environment.Functions that return void do not return a value and therefore do not require a return statement, unless the function needs to return early (before falling off the end of the function). Functions that return values must use a returnstatement to return the appropriate value to the caller.In C++ (but not in C), the global main function does not require a return statement unless returning early. When omitted, the global main function implicitly returns the value 0 (to the execution environment) when execution falls off the end of the function. To return any other value, a return statement is required.
Well, it depends on what you mean by the type of a function. There are user defined functions and library functions.
Surprise, surprise: returning from a function.
No, it should be int type or void.
return 0
return;orreturn ;PS: not function, statement!
since, the word 'void' in C programming language means that it does not return any value to the user or calling function....this is usually used to specify a type of function...... for this reason w use 'void'in c program..
I don't use that function in C programme.
Normally the return value from the function is through the information from the accumulator.